Source codeContentsIndex
Bindings
Synopsis
keyboardMouse :: IORef [Inst] -> t1 -> IORef [Inst] -> Key -> KeyState -> t2 -> t -> IO ()
data CubeState = CS {
cube :: IORef RCube
insts :: IORef [Inst]
inst :: IORef [Inst]
rot :: IORef GLfloat
}
goalState :: RCube
data Inst
= NO
| SH
| F
| F'
| R
| R'
| L
| L'
| B
| B'
| U
| U'
| D
| D'
| MF
| MF'
| MU
| MU'
| MR
| MR'
| TF
| TF'
| TU
| TU'
| TR
| TR'
randomMoves :: Int -> IO [[Inst]]
Documentation
keyboardMouse :: IORef [Inst] -> t1 -> IORef [Inst] -> Key -> KeyState -> t2 -> t -> IO ()Source
data CubeState Source
Constructors
CS
cube :: IORef RCube
insts :: IORef [Inst]
inst :: IORef [Inst]
rot :: IORef GLfloat
goalState :: RCubeSource
data Inst Source
Inst Conjunto de itrucciones para manejar el cubo de Rubik.
Constructors
NONO Move
SHShuffle Cube
FRotate Front Clockwise f in the Keyboard
F'Rotate Front CounterClockwise F in the Keyboard
RRotate Right Clockwise r in the Keyboard
R'Rotate Right CounterClockwise R in the Keyboard
LRotate Left Clockwise l in the Keyboard
L'Rotate Left CounterClockwise L in the Keyboard
BRotate Back Clockwise b in the Keyboard
B'Rotate Back CounterClockwise B in the Keyboard
URotate Up Clockwise u in the Keyboard
U'Rotate Up CounterClockwise U in the Keyboard
DRotate Down Clockwise d in the Keyboard
D'Rotate Down CounterClockwise D in the Keyboard
MFRotate Middle Front Clockwise
MF'Rotate Middle Front CounterClockwise
MURotate Middle Up Clockwise
MU'Rotate Middle Up CounterClockwise
MRRotate Middle Right Clockwise
MR'Rotate Middle Right CounterClockwise
TFTurn Cube ClockWise on Z axis
TF'Turn Cube CounterClockwise on Z axis
TUTurn Cube ClockWise on Y axis
TU'Turn Cube CounterClockwise on Y axis
TRTurn Cube ClockWise on X axis
TR'Turn Cube CounterClockwise on X axis
show/hide Instances
Eq Inst
Show Inst
Arbitrary Inst
randomMoves :: Int -> IO [[Inst]]Source
Produced by Haddock version 2.7.2