Description Usage Arguments Value Author(s) Examples
A simple implementation of the game where one clears bombs (or flowers – see the wikipedia entry for 'minesweeper') from a given field. After starting the game by entering miney(5), for instance, the user/player needs to click on the plotted elements to see how many neighbors are bombs/flowers/.... The game is over if the players hits a bomb or when the player has cleared all non-bomb/flower/...-elements.
1 | miney(n)
|
n |
determines the size of the matrix. If n=5, the game will use a 5 by 5 matrix. |
No value returned. Function is used for its side effects.
Roland Rau
1 | ## Not run: miney(5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.