Description Usage Arguments Value Examples
make setting of a sliding puzzle
1 | makeSetting(boardsize, piecesize)
|
boardsize |
a numeric vector of length 2. (number of rows, number of columns) of the board. Should be >= 1 and <= 9. |
piecesize |
a named list. The name of each element should be a alphabetic character representing a type of piece. Case sensitive. Duplicated names are not allowed. Each element should be a numeric vector of length 2, giving (vertical size, horizontal size) of that type of piece. Should be >= 1 and <= 9. |
an object of class 'slidepzl_setting', which is a list with following elements:
same as boardsize
argument
a named list.
The name of each element is a alphabetic character, giving the 'type' of piece.
Each element is a numeric matrix of size (k,2), giving relative locations of cells which that type of piece occupies.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.