I found the pattern for coloring any cube in 4 colors to these rules. We received a very complex mathematical puzzle. if you want to solve it, you do not know the final pattern, but you know the rules of placement!
very similar puzzles: Sudoku, Qubami, Krenol, Respect cubes