getMovesCube {cubing} | R Documentation |

## Create a Cube for a Move Sequence

### Description

Creates a cube that corresponds to a move sequence via post-multiplication.

### Usage

```
getMovesCube(moves = character(0), cubie = TRUE)
```

### Arguments

`moves` |
A move sequence; either a single string or a character vector with one element per move. Can include URFDLB face turns. Cannot include rotations, middle slice moves or wide moves. |

`cubie` |
If |

### Details

The cube object created by this function represents the application of the move sequence
by means of post-multiplication with the composition operator `%v%`

. If A
is a cube and `m`

is the move sequence, then A `%v% getMovesCube(m)`

is the
cube that results from applying the move sequence to A. In particular, if A
is the solved state then this is just `getMovesCube(m)`

. If `m`

represents
a scramble sequence, then `getMovesCube(m)`

is the scrambled cube state.

The move sequence cannot include rotations, middle slice moves or wide moves because
these cannot be expressed via post-multiplication. To implement these moves, see the `move`

and `rotate`

functions.

### Value

A cube object.

### See Also

`%v%`

, `invMoves`

,
`move`

, `rotate`

, `slice`

### Examples

```
scramb <- "D2F2UF2DR2DBL'BRULRUL2FL'U'"
aCube <- getMovesCube(scramb)
mvs <- "x2D'R'L2'U'FU'F'D'U'U'R'y'R'U'Ry'RU'R'U'RUR'U'R'U'F'UFRU'"
is.solved(move(aCube, mvs))
```

*cubing*version 1.0-5 Index]