Constructs

A construct is a compound statement. Constructs can be built from other statements and from sequences of statements.

In CubeTwister, a construct can be used wherever a statement can be used.

Grouping

Sequences of statements can be grouped to build a compound statement.

In CubeTwister a sequence can be grouped by putting the sequence between a begin group token and an end group token.

Repetition

A statement can be repeated multiple times.

In CubeTwister repetitions are specified by supplying a repetition count.

Inversion

An inversion inverts the effect of a statement. A statement followed by its inverted statement has no effect on the state of a cube.

e.g. An inverted move affects the same layers by the same amount of degrees, but into the opposite direction.

e.g. An inverted permutation cycle permutes the parts into the opposite direction of the cycle.

e.g. Moves and permutation cycles in an inverted grouping are inverted each and performed in the opposite sequence from right to left.

In CubeTwister a move or a grouping can be inverted using an invertor token.

Reflection

A reflection inverts the axis of a move statement.

Conjugation

A conjugation of two statements A and B has the same effect as performing the sequence A B followed by the inversion of A.

Commutation

A commutation of two statements A and B has the same effect as performing the sequence A B followed by the inversion of A and the inversion of B.

Rotation

A rotation of two statements A and B has the same effect as performing the inversion of A followed by the sequence B A.