logicpuzzle

A LaTeX style file for typesetting logic puzzles

User Tools

Site Tools


minesweeper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

minesweeper [2015/09/06 09:51] (current)
Line 1: Line 1:
 +<​markdown>​
 +Minesweeper
 +===========
  
 +The environment enables the user to typeset Minesweeper logic puzzles. ​
 +Draw a mine in some cells of the grid. The number in a cell indicates
 +how many of the eight neighboring cells contain a mine.
 +A numbered cell does not contain a mine.
 +
 +![minesweeper puzzle](http://​i.imgur.com/​qwP9zGR.png)
 +
 +    \begin{center}
 +      \begin{minesweeper}
 +        \framepuzzle
 +        \setrow{5}{{},​1}
 +        \setrow{4}{{},​{},​3,​3}
 +        \setrow{3}{3,​{},​4,​2}
 +        \setrow{2}{{},​{},​{},​{},​0}
 +        \setrow{1}{{},​2}
 +      \end{minesweeper}
 +      \hspace{1.5cm}
 +      \begin{minesweeper}
 +        \framepuzzle
 +        \setrow{5}{{},​1,​{},​\Mine,​\Mine}
 +        \setrow{4}{{},​\Mine,​3,​3,​\Mine}
 +        \setrow{3}{3,​\Mine,​4,​2}
 +        \setrow{2}{{},​\Mine,​\Mine,​{},​0}
 +        \setrow{1}{{},​2}
 +      \end{minesweeper}
 +    \end{center}
 +
 +</​markdown>​
minesweeper.txt ยท Last modified: 2015/09/06 09:51 (external edit)