Wiki home

Bridges

The environment enables the user to typeset Bridges logic puzzles (aka Brückenbau, Hashi, ...)
Connect all the islands (circles) located in the grid by bridges. The bridges may only be routed horizontally and vertically. Islands may be connected by a maximum of two bridges. The bridges must neither overlap nor cross. They may also not be built over islands. The numbers in the islands indicate how many bridges originate from this island. All islands must be fully connected.

\colorlet{LP@c@bridge}{Teal}
\begin{center}
\begin{bridges}
\framepuzzle
\bridgesrow{8}{{},4,{},{},{},5,{},2}
\bridgesrow{7}{{},{},1}
\bridgesrow{5}{{},{},3,{},4}
\bridgesrow{4}{{},3,{},1,{},2}
\bridgesrow{3}{{},{},{},{},{},{},{}}
\bridgesrow{2}{{},2,{},{},5,{},{},2}
\end{bridges}
\hspace{1.5cm}
\begin{bridges}[grid=none]
\framepuzzle
\bridgesrow{8}{{},4,{},{},{},5,{},2}
\bridgesrow{7}{{},{},1}
\bridgesrow{5}{{},{},3,{},4}
\bridgesrow{4}{{},3,{},1,{},2}
\bridgesrow{3}{{},{},{},{},{},{},{}}
\bridgesrow{2}{{},2,{},{},5,{},{},2}
\bridge[double]{\tikzpath{2}{4}{8,8,8,8,6,6,6,6,2,2,2,2}}
\bridge[double]{\tikzpath{2}{2}{6,6,6,8,8,8,4,4}}
\bridge{\tikzpath{2}{4}{6,6}}
\bridge{\tikzpath{3}{5}{8,8}}
\bridge{\tikzpath{5}{2}{6,6,6,8,8,8,8,8,8,4,4}}
\end{bridges}
\end{center}


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

Documentation (PDF)

Examples & Solutions (PDF)

[Home]

Updated

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.