Wiki

Clone wiki

logicpuzzle / KillerSudoku

Killer Sudoku

The puzzle

Fill the cells with the numbers from 1 to SIZE of the puzzle. The numbers may occur only once in each row, column and colored area if specified. In the top left corner of a framed area, you will find the sum of the entered numbers. The numbers of an area may not necessarily be different, when they are in different rows or columns. But they must be different, when additional colored areas are specified. Here’s a little self-explanatory example:

Killer Sudoku

#!latex

\begin{killersudoku}
  \framearea{black}{\tikzpath{1}{1}{8,8,6,6,2,4,2,4}}
  \framearea{black}{\tikzpath{1}{3}{8,8,6,2,2,4}}
  \framearea{black}{\tikzpath{2}{1}{8,6,6,6,2,4,4,4}}
  \framearea{black}{\tikzpath{2}{3}{8,8,6,2,6,2,4,4}}
  \framearea{black}{\tikzpath{3}{2}{8,6,8,6,2,2,4,4}}
  \framearea{black}{\tikzpath{3}{4}{8,6,6,2,4,4}}
  \begin{puzzlebackground}
    \colorarea{orange!20}{\tikzpath{1}{1}{8,8,6,6,2,2,4,4}}
    \colorarea{orange!20}{\tikzpath{3}{3}{8,8,6,6,2,2,4,4}}
  \end{puzzlebackground}
  \setrule{1}{2}{7}
  \setrule{1}{4}{7}
  \setrule{2}{1}{9}
  \setrule{2}{4}{6}
  \setrule{3}{4}{5}
  \setrule{4}{3}{6}
\end{killersudoku}
\hspace{1.5cm}
\begin{killersudoku}
  \framearea{black}{\tikzpath{1}{1}{8,8,6,6,2,4,2,4}}
  \framearea{black}{\tikzpath{1}{3}{8,8,6,2,2,4}}
  \framearea{black}{\tikzpath{2}{1}{8,6,6,6,2,4,4,4}}
  \framearea{black}{\tikzpath{2}{3}{8,8,6,2,6,2,4,4}}
  \framearea{black}{\tikzpath{3}{2}{8,6,8,6,2,2,4,4}}
  \framearea{black}{\tikzpath{3}{4}{8,6,6,2,4,4}}
  \begin{puzzlebackground}
    \colorarea{orange!20}{\tikzpath{1}{1}{8,8,6,6,2,2,4,4}}
    \colorarea{orange!20}{\tikzpath{3}{3}{8,8,6,6,2,2,4,4}}
  \end{puzzlebackground}
  \setrule{1}{2}{7}
  \setrule{1}{4}{7}
  \setrule{2}{1}{9}
  \setrule{2}{4}{6}
  \setrule{3}{4}{5}
  \setrule{4}{3}{6}
  \setrow{4}{3,2,4,1}
  \setrow{3}{4,1,3,2}
  \setrow{2}{2,4,1,3}
  \setrow{1}{1,3,2,4}
\end{killersudoku}

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

Documentation (PDF)(Wiki)

Examples & Solutions (PDF)


[Home]

Updated