Wiki

Clone wiki

logicpuzzle / Schatzsuche

Schatzsuche

The environment enables the user to typeset Schatzsuche logic puzzles. It's a variant of Minesweeper, just with diamonds instead of mines. Draw a diamond in some cells of the grid. The number in a cell indicates how many of the eight neighboring cells contain a diamond. A numbered cell does not contain a diamond. Here’s a little self-explanatory example:

Schatzsuche

#!latex
\begin{center}
  \begin{schatzsuche}
    \framepuzzle
    \setrow{5}{{},1}
    \setrow{4}{{},{},3,3}
    \setrow{3}{3,{},4,2}
    \setrow{2}{{},{},{},{},0}
    \setrow{1}{{},2}
  \end{schatzsuche}
  \hspace{1.5cm}
  \begin{schatzsuche}
    \framepuzzle
    \setrow{5}{{},1,{},\Diamond,\Diamond}
    \setrow{4}{{},\Diamond,3,3,\Diamond}
    \setrow{3}{3,\Diamond,4,2}
    \setrow{2}{{},\Diamond,\Diamond,{},0}
    \setrow{1}{{},2}
  \end{schatzsuche}
\end{center}

You will find the current release in the Downloads tab and on CTAN.

Documentation (PDF)

Examples & Solutions (PDF)


[Home]

Updated