Learn R Programming

rcube (version 0.5)

scramble: Scrambling cube

Description

Scrambling cube

Usage

scramble(cube, times = 0)

Arguments

cube

- cube object to scramble

times

- how many random moves should be done on cube. Default is 0 which means N*10 moves where N is the size of the cube.

Value

cube

Examples

Run this code
# NOT RUN {
cube <- createCube()
set.seed(1)
cube <- scramble(cube)
bigcube <- createCube(N = 15)
set.seed(1)
bigcube <- scramble(bigcube)
# }

Run the code above in your browser using DataLab