Skip to content

AlvaroSimonMerino/RubiksCube

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rubiks Cube Project

Code Structure

Cube Class

The cube class represents the rubik's cube.

Naming convention

  • W -> white
  • G -> green
  • O -> Orange
  • B -> Blue
  • R -> Red
  • Y -> Yellow

Faces Reference

	| R |
| B | W | G | Y |
	| O |

Face Parametrization

         |R1|R2|R3|
         |R4|R5|R6|
         |R7|R8|R9|
|B1|B2|B3|W1|W2|W3|G1|G2|G3|Y1|Y2|Y3|
|B4|B5|B6|W4|W5|W6|G4|G5|G6|Y4|Y5|Y6|
|B7|B8|B9|W7|W8|W9|G7|G8|G9|Y7|Y8|Y9|
         |O1|O2|O3|
         |O4|O5|O6|
         |O7|O8|O9|

Serialization Structure

{
  "w": ["w1", "w2", "w3", "w4", "w5", "w6", "w7", "w8", "w9"],
  "r": ["r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9"],
  "g": ["g1", "g2", "g3", "g4", "g5", "g6", "g7", "g8", "g9"],
  "o": ["o1", "o2", "o3", "o4", "o5", "o6", "o7", "o8", "o9"],
  "b": ["b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9"],
  "y": ["y1", "y2", "y3", "y4", "y5", "y6", "y7", "y8", "y9"]
}

Moves notation

  • t: Top side move 1 clockwise
  • f: Front side move 1 clockwise
  • d: Down side move 1 clockwise
  • r: Right side move 1 clockwise
  • l: Left side move 1 clockwise
  • b: Back side move 1 clockwise

About

Rubiks Cube parametrization model in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%