jneen / cube

A Rubik's Cube emulator in Haskell, for testing solving algorithms and such.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data.RubiksCube

Try this:

ghci> :m + Data.RubiksCube
ghci> zperm
readAlg "M2 U' M2 U' M' U2 M2 U2 M' U2"
ghci> inverse zperm
readAlg "U2 M U2 M2 U2 M U M2 U M2"
ghci> printCube (applyAlg zperm)
[[ a really awesome printout of the result of a zperm ]]
ghci> readAlg "R" |*| readAlg "U"
readAlg "R U"
ghci> conjugate (readAlg "R") (readAlg "U")
readAlg "R U R'"
ghci> inverse (conjugate (readAlg "R") (readAlg "U"))
readAlg "R U' R'"
ghci> commutator (readAlg "D") (readAlg "RUR'")
readAlg "D R U R' D' R U R'"

About

A Rubik's Cube emulator in Haskell, for testing solving algorithms and such.

License:MIT License


Languages

Language:Haskell 100.0%