Popular recipes tagged "cube"http://code.activestate.com/recipes/tags/cube/2013-02-11T10:32:26-08:00ActiveState Code RecipesPuzzle: Four cubes with different colors on their sides (Python) 2013-02-11T10:32:26-08:00Thomas Lehmannhttp://code.activestate.com/recipes/users/4174477/http://code.activestate.com/recipes/578454-puzzle-four-cubes-with-different-colors-on-their-s/ <p style="color: grey"> Python recipe 578454 by <a href="/recipes/users/4174477/">Thomas Lehmann</a> (<a href="/recipes/tags/colors/">colors</a>, <a href="/recipes/tags/cube/">cube</a>, <a href="/recipes/tags/puzzle/">puzzle</a>). </p> <p>I have four cubes (in real) with different colors on their sides as a puzzle with the final goal to place each cube side by side that way that on each visible side (except the two ends) you can see four different colors.</p> <p>I have placed the cubes as they are (side by side) writing down the current colors (see function main). The CubesChecker class is searching for one solution. You don't see the operation on how to rotate but knowing the final state it's really easy to do it yourself then.</p>