logicpuzzle

A LaTeX style file for typesetting logic puzzles

User Tools

Site Tools


starbattle

Differences

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

Link to this comparison view

starbattle [2015/09/06 09:52] (current)
Line 1: Line 1:
 +<​markdown>​
 +Star Battle
 +===========
  
 +The environment enables the user to typeset 'Star Battle'​ logic puzzles
 +(aka Sternenschlacht,​ ...)  ​
 +Enter exactly one star in each row, each column and each area of the grid. Cells with stars must not touch each other orthogonally or diagonally.
 +
 +![Star Battle puzzle](http://​i.imgur.com/​a4iAlAJ.png)
 +
 +    \begin{center}
 +      \begin{starbattle}
 +        \framepuzzle
 +        \framearea{black}{\tikzpath{1}{1}{8,​6,​8,​6,​6,​2,​6,​6,​2,​4,​4,​4,​4,​4}}
 +        \framearea{black}{\tikzpath{1}{2}{8,​8,​6,​2,​2,​4}}
 +        \framearea{black}{\tikzpath{1}{4}{8,​8,​6,​6,​2,​6,​2,​2,​4,​4,​8,​4}}
 +        \framearea{black}{\tikzpath{4}{2}{8,​8,​8,​4,​8,​6,​6,​6,​2,​4,​2,​2,​6,​2,​4,​4}}
 +        \framearea{black}{\tikzpath{5}{3}{8,​8,​6,​2,​2,​4}}
 +      \end{starbattle}
 +      \hspace{1.5cm}
 +      \begin{starbattle}
 +        \framepuzzle
 +        \framearea{black}{\tikzpath{1}{1}{8,​6,​8,​6,​6,​2,​6,​6,​2,​4,​4,​4,​4,​4}}
 +        \framearea{black}{\tikzpath{1}{2}{8,​8,​6,​2,​2,​4}}
 +        \framearea{black}{\tikzpath{1}{4}{8,​8,​6,​6,​2,​6,​2,​2,​4,​4,​8,​4}}
 +        \framearea{black}{\tikzpath{4}{2}{8,​8,​8,​4,​8,​6,​6,​6,​2,​4,​2,​2,​6,​2,​4,​4}}
 +        \framearea{black}{\tikzpath{5}{3}{8,​8,​6,​2,​2,​4}}
 +        \starbattlecell{1}{2}{\Star}
 +        \starbattlecell{2}{4}{\Star}
 +        \starbattlecell{3}{1}{\Star}
 +        \starbattlecell{4}{5}{\Star}
 +        \starbattlecell{5}{3}{\Star}
 +      \end{starbattle}
 +    \end{center}
 +
 +</​markdown>​
starbattle.txt ยท Last modified: 2015/09/06 09:52 (external edit)