Skip to content

Indexing

Akshath Raghav edited this page Jun 28, 2021 · 1 revision

example

Refer to the above image for indexing of each piece If you want to read more, go to Eli Bendersky's Website

The following represents the indexs for the color on each side of each piece

  • cubearray[0][0][0][0] --> Color on top
  • cubearray[0][0][0][1] --> Color on side
  • cubearray[0][0][0][2] --> Color in front

( Additional 3x3 indexes )

  • Only for Centers --> cubearray[0][0][0][1].substring(0,1) --> Gives you the color of the center piece
  • cubearray[1][1][1] --> Joint Piece
Clone this wiki locally