# logicpuzzle

A LaTeX style file for typesetting logic puzzles

starbattle

# Differences

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

 — starbattle [2015/09/06 09:52] (current) 2013/05/18 14:32 kleberj created starbattle 2013/05/18 14:32 kleberj created starbattle 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} + +