Wiki

Clone wiki

logicpuzzle / Kakuro

Kakuro

The environment enables the user to typeset Kakuro logic puzzles. Enter numbers from 1 to 9 in any order into the blank cells. Here, the given horizontal and vertical sums should result. The zero does not occur. Within a summation, no number can be repeated. Here’s a little self-explanatory example:

Kakuro

\definecolor{kakuro}{RGB}{155,206,167}
\kakurosetup{color=kakuro}
\begin{center}
  \begin{kakuro}
    \framepuzzle
    \kakurorow{5}{\Black,\KKR{23}{},\KKR{16}{},\KKR{10}{},\Black}
    \kakurorow{4}{\KKR{}{14},9,1,4,\KKR{3}{}}
    \kakurorow{3}{\KKR{}{16},6,5,3,2}
    \kakurorow{2}{\KKR{}{14},8,3,2,1}
    \kakurorow{1}{\Black,\KKR{}{8},7,1,\Black}
  \end{kakuro}
  \hspace{1.5cm}
  \begin{kakuro}[solution]
    \framepuzzle
    \kakurorow{5}{\Black,\KKR{23}{},\KKR{16}{},\KKR{10}{},\Black}
    \kakurorow{4}{\KKR{}{14},9,1,4,\KKR{3}{}}
    \kakurorow{3}{\KKR{}{16},6,5,3,2}
    \kakurorow{2}{\KKR{}{14},8,3,2,1}
    \kakurorow{1}{\Black,\KKR{}{8},7,1,\Black}
  \end{kakuro}
\end{center}

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

Documentation (PDF)

Examples & Solutions (PDF)


[Home]

Updated