Description Usage Arguments Value See Also
This function parses the msweepeR
game command supplied by the user.
This function is mainly used to update a msBoard
object during a msweepeR
game session.
1 | parse_msweepeR_cmd(command)
|
command |
A character vector of length 1 containing the |
This function returns a numeric vector of length < 5 containing a syntax representation of the command.
The first element is a header that indicates whether an error ocurred while parsing the code. The second element, if no
error ocurred, indicates the desired action to be applied on the msBoard
(open a tile or put a flag), and finally
the third and fourth elements (again, if no error ocurred while parsing) represent the tile coordinates where the action
should take place. However, if there's an error header, the remaining elements of the vector contains information about the
error.
msweepeR
, msBoard
, eval_msweepeR_cmd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.