Wiki

Clone wiki

logicpuzzle / LaserBeam

Laser Beam

The environment enables the user to typeset Laser Beam logic puzzles (aka Laserstrahl, ...). Draw a laser beam in each grid according to the following guidelines. The beam has to enter or to leave the grid at the arrows. At each intersection, a mirror, on which the laser beam must reflect on one side, can be placed horizontally or vertically. The other side must not be touched by the beam. All locations where the laser crosses are given. The numbers to the left and above the grid indicate how many cells are traversed by the beam in the corresponding row or column. The numbers to the right and below reveal, how many mirrors are found in the intersection of the corresponding row or column. Here’s a little self-explanatory example:

Laser Beam

#!latex

\begin{center}
  \begin{laserbeam}
    \laserV{1}
    \laserH{{}}
    \mirrorH{{},2}
    \mirrorV{{},{},{},{},{},2}
    \framepuzzle[LP@c@mirror]
    \placearrow{3}{1}{LeftUp}
    \placearrow{6}{4}{RightUp}
    \placecross{3}{3}
  \end{laserbeam}
  \hspace{1cm}
  \begin{laserbeam}
    \laserV{1}
    \laserH{{}}
    \mirrorH{{},2}
    \mirrorV{{},{},{},{},{},2}
    \framepuzzle[LP@c@mirror]
    \placearrow{3}{1}{LeftUp}
    \placearrow{6}{4}{RightUp}
    \placecross{3}{3}
    \placemirror{2}{2}{V}
    \placemirror{4}{2}{H}
    \placemirror{5}{5}{V}
    \placemirror{3}{5}{H}
    \begin{puzzlebackground}
      \laser{\tikzpath{3}{1}{7,9,9,9,7,1,7,1,3,3,3,9,9}}
    \end{puzzlebackground}
  \end{laserbeam}
\end{center}

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

Documentation (PDF)(Wiki)

Examples & Solutions (PDF)


[Home]

Updated