flix

0.75.3

Orbit64.Move

enum Move with Eq, ToStringSource
case LayerTurn(Face, Int32, Amount)

A primitive layer turn.

Instances

instance Eq[Move]Source
instance ToString[Move]Source

Definitions

def alphabetSize(n: Int32): BigInt§ Source

The number of primitive moves available at size n.

def decode(token: String): Result[String, (LayerClass, List[Move])]§ Source

Decode a literal move sequence and return its odd/even layer class.

def encode(n: Int32, moves: List[Move]): Result[String, String]§ Source

Encode a literal sequence of primitive moves.

def faces(): List[Face]§ Source

The six faces in the canonical Orbit64 and spaced WCA notation order: U R F D L B.

def faultOf(n: Int32, move: Move): Option[String]§ Source

Explain why move is not defined for the n x n x n cube.

def layerCount(layerClass: LayerClass): Int32§ Source

Return the reachable layer count carried by layerClass.

def notation(face: Face): String§ Source

The one-letter WCA face label used in spaced face notation.

def rank(n: Int32, move: Move): BigInt§ Source

Rank a move in face, depth, amount order.

def unrank(n: Int32, value: BigInt): Move§ Source

Recover a move from a rank below alphabetSize(n).