Encounter
Here is the key idea of this world: a move is a cube state, namely the state you
get by doing that move to a solved cube. R is the five lists you see after one
clockwise turn of the right face.
Doing a and then b is written a * b. To compute it, ask for each slot i: "which
piece does b put here?" (b.cp[i], call it j), then "which piece did a put in
slot j?" (a.cp[j]). Twists add up along the way, mod 3:
(a * b).cp[i] = a.cp[b.cp[i]]
(a * b).co[i] = (a.co[b.cp[i]] + b.co[i]) % 3
The solved cube 1 changes nothing: 1 * c = c * 1 = c. Every move can be undone:
R * R' = 1. These are exactly the rules of a group, which is where Cube Quest is
heading.