Slitherlink

The environment enables the user to typeset Slitherlink logic puzzles (aka Fences, Number Line, Dotty Dilemma, Sli-Lin, Takegaki, Great Wall of China, Loop the Loop, Rundweg, Gartenzaun, ...)
Draw a closed line into the grid. This line must be on the existing dashed lines, but do not have to go through all grid points. If numbers are present in the grid cells, they indicate how many sides of the cell are touched by the line. The line must not touch or cross itself.

\begin{center}
\begin{slitherlink}
\setbigcell{1}{1}{4}
\slitherlinkcell{1}{3}{3}
\slitherlinkcell{3}{1}{3}
\slitherlinkcell{3}{3}{0}
\slitherlinkcell{3}{4}{3}
\slitherlinkcell{4}{4}{2}
\slitherlinkcell{5}{1}{0}
\slitherlinkcell{5}{2}{2}
\end{slitherlink}
\hspace{1.5cm}
\begin{slitherlink}
\setbigcell{1}{1}{4}
\slitherlinkcell{1}{3}{3}
\slitherlinkcell{3}{1}{3}
\slitherlinkcell{3}{3}{0}
\slitherlinkcell{3}{4}{3}
\slitherlinkcell{4}{4}{2}
\slitherlinkcell{5}{1}{0}
\slitherlinkcell{5}{2}{2}
\framearea{black}{\tikzpath{3}{1}{8,8,4,4,8,6,6,8,6,2,
6,6,2,4,2,4,2,4}}
\end{slitherlink}
\end{center}


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

Documentation (PDF)(Wiki)

Examples & Solutions (PDF)

[Home]

Updated