RS
Rubik's Robot
[HOBBY PROJECT] A robot that can solve a Rubik's Cube!
Created a Cube.getFaceIdFromLetter function to use in the executeAlgorithmFromString method
Added a Cube.executeAlgorithmFromString function which takes in algorithm notation (eg. "F F' U R2 U' D2") and executes it as turn commands
Tested my code so far by trying a bunch of moves and comparing it to doing them a real Rubik's cube!
Decided that face IDs will be based on their center piece's color (the centers never move)
Created a Cube.getFaceById method
Made a Face.turn method!!! It takes in a direction (CLOCKWISE or COUNTER_CLOCKWISE) as an argument
Created a Face.getPositionedTiles method
Created a Face.getTiles method
Created a Face.getTileAtPosition method
Finished the Tile.getPositionOnFace method (finally 😅)
Decided that the 'top' of each face will be the face with a center piece of n+1 where n is the center piece of the original face
Created the Tile.getOtherTilesOnPiece method
Initialize corner pieces when calling the Cube constructor
Initialize edge pieces when calling the Cube constructor
Initialize center pieces when calling the Cube constructor
Created a Tile class which is a child of the Piece class
Created CornerPiece, EdgePiece and CenterPiece classes which extend the Piece class
Created a Piece class which is a child of the Cube class
Created a Face class which is a child of the Cube class
Added incrementColor to color-functions module
Added getOppositeColor to color-functions module
Created a color-functions module
Created FACE_COUNT and PIECES_PER_FACE constants