CTAN
Bitbucket
jkLaTeX
TeXdoku
——
The TeX community aggregator
- An error occurred while fetching this feed: http://www.texample.net/feeds/community/
Impressum / Datenschutzerklärung
CTAN
Bitbucket
jkLaTeX
TeXdoku
——
The TeX community aggregator
Impressum / Datenschutzerklärung
This is an old revision of the document!
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.
\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}