ScratchData LogoScratchData
Back to tornado11267's profile

'n Dag in die lewe van 'n Rubik's Cube

TOtornado11267•Created February 10, 2022
'n Dag in die lewe van 'n Rubik's Cube
2
1
7 views
View on Scratch

Instructions

Run time: 107 seconds on my PC * All events shown are purely fictional! I don't know whether ceebee can solve the Rubik's Cube or not. It was easier to use ceebee animations than to create my own. (see project credits) * This project does a 50 random twist shuffle of the Rubik's Cube. There is a different cube to be solved each time project is run. * The Rubik's Cube is rotated using 3D math and is drawn using Pen. ie. no cube costumes! See 3D Tutorial Studio to draw and rotate 3D objects: https://scratch.mit.edu/studios/5040029/ * The Rubik's Cube is solved using the Highest Order AXis algorithm that I created and wrote myself. How The Highest Order AXis algorithm Works -------------------------------------------------------------- There are 27 possible moves/twists that you can make to the Rubiks Cube. For each of the X, Y, Z axes there are 3 layers each of which can be turned, 90, -90 or 180 degrees. The Highest Order AXis algorithm tries each of these 27 moves from the current cube position and gives each of these 27 moves a score depending on how well the small cube faces of each colour "align". The algorithm then chooses the move with the highest score. Faces "align" not only if they are on the face of the Rubiks Cube which has that colour as the central colour of the face but also if there are an equal number of steps that would bring many of the other faces of that colour onto that Rubiks Cube face. Faces with "perfect alignment" have their other coloured faces also correctly aligned with the centre face of the Rubiks Cube that they would be rotated to when the steps are executed to bring them to the correct face. These are called "orientation points" which are combined with the "alignment points" to calculate the overall score for a move. The algorithm gives up if more than 20 best scoring moves are required.

Project Details

Project ID642065161
CreatedFebruary 10, 2022
Last ModifiedFebruary 17, 2022
SharedFebruary 10, 2022
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root