logicpuzzle

A LaTeX style file for typesetting logic puzzles

User Tools

Site Tools


schatzsuche

Differences

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

Link to this comparison view

schatzsuche [2015/09/06 09:52] (current)
Line 1: Line 1:
 +<​markdown>​
 +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](http://​i.imgur.com/​iOYEiHj.png)
 +
 +
 +    \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}
 +
 +</​markdown>​
schatzsuche.txt · Last modified: 2015/09/06 09:52 (external edit)