logicpuzzle

A LaTeX style file for typesetting logic puzzles

User Tools

Site Tools


numberlink

Differences

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

Link to this comparison view

numberlink [2015/09/06 09:52] (current)
Line 1: Line 1:
 +<​markdown>​
 +Number Link
 +===========
  
 +Link all the same numbers or letters in each case by a line. The lines can run horizontally,​ vertically and in 90 degree angles. Each cell must be traversed by exactly one line. The lines must not intersect. Here’s a little self-explanatory example:
 +
 +![Number Link](http://​i.imgur.com/​OmOKEct.png)
 +
 +    \begin{numberlink}
 +      \framepuzzle
 +      \numberlinkcell{2}{1}{B}
 +      \numberlinkcell{5}{1}{C}
 +      \numberlinkcell{2}{2}{C}
 +      \numberlinkcell{4}{2}{D}
 +      \numberlinkcell{3}{3}{A}
 +      \numberlinkcell{4}{3}{E}
 +      \numberlinkcell{1}{4}{B}
 +      \numberlinkcell{1}{5}{A}
 +      \numberlinkcell{3}{5}{E}
 +      \numberlinkcell{4}{5}{D}
 +    \end{numberlink}
 +    \hspace{1.5cm}
 +    \begin{numberlink}
 +      \framepuzzle
 +      \numberlinkcell{2}{1}{B}
 +      \numberlinkcell{5}{1}{C}
 +      \numberlinkcell{2}{2}{C}
 +      \numberlinkcell{4}{2}{D}
 +      \numberlinkcell{3}{3}{A}
 +      \numberlinkcell{4}{3}{E}
 +      \numberlinkcell{1}{4}{B}
 +      \numberlinkcell{1}{5}{A}
 +      \numberlinkcell{3}{5}{E}
 +      \numberlinkcell{4}{5}{D}
 +      \link{\tikzpath{4}{3}{8,​4,​8}}
 +      \link{\tikzpath{2}{1}{4,​8,​8,​8}}
 +      \link{\tikzpath{2}{2}{6,​2,​6,​6}}
 +      \link{\tikzpath{1}{5}{6,​2,​2,​6}}
 +      \link{\tikzpath{4}{2}{6,​8,​8,​8,​4}}
 +    \end{numberlink}
 +
 +
 +</​markdown>​
numberlink.txt · Last modified: 2015/09/06 09:52 (external edit)