Sudoku puzzles

Click here to fetch Sudoku puzzles and their solution. All Sudoku puzzles have been made using the program described below, and are fetched from a MySQL database.

It is now possible to solve the puzzles online!

Click here to fetch more puzzles at a time. The puzzles are packed in a PDF file, ready for printout.

The source code for the scripts on the home page that present the puzzles as HTML or PDF, are available in the .zip or .tar.gz archives below.

See also the list of Frequently Asked Questions (FAQ) - not because people have asked many questions about the program, but there has to be a FAQ!

Sudoku generator and solver

This Sudoku generator produces Sudoku puzzles.

There's a version for Windows and for Linux. The generated puzzles are easy to print, and from version 20060208 it is possible to solve the puzzles manually with the program.

The Windows version is available as source code, or compiled with MinGW. All you need to do is to click on the file sudoku.exe below, and the program starts.

The Linux version needs to be compiled. Motif or Lesstif is needed during the compilation (e.g. openmotif-devel or lesstif-devel)). The printout is a PostScript file, to be sent to a printer.

To solve a puzzle in the program, press the Play button. Small numbers are shown in the cells. These are the candidates available. Click on a digit to mark it as a solution, right click to eliminate it as candidate. A Hint button is available to show the next move.

The program uses a simple algorithm to produce a puzzle: Solve an empty puzzle. Remove numbers one by one, as long as the puzzle has a unique solution. By default symmetric puzzles are produced, but this can be changed in Settings.

Under the menu item Settings one can set the desired number of numbers in the puzzle. So far, no 3x3 puzzle with less than 17 numbers has been found. This program can take days to find a puzzle with 19 numbers.

You can set a low value for the number of number in the puzzle, start the program, and stop it again when you see a puzzle that looks interesting. Print out the puzzle. Press Solve to solve the puzzle, and print out again. Now you can solve the puzzle on paper, and check the solution. All puzzles have exactly one solution.

Note: If you run Windows, all you need to do is to click on the sudoku.exe file below. This is the latest version of the program, ready to run.

Note: Starting from version 20050919, the program can produce puzzles of different sizes. From 2x2 to 4x5. Puzzles larger than 3x3 can take a long time to generate.

Version 20081203
Source code, .tar.gz20081203.tar.gz
Source code, .zip20081203.zip
Windows executablesudoku.exe

Earlier versions of the program are available here. There is also a list of changes in the program versions.

Avoid using download managers, the files are small. And my web server doesn't like them.

Check out http://sudoku.sourceforge.net/ for a more general Sudoku program. This has been coded in Java, but the puzzles produced are difficult to print. You can use cut&paste to transfer the puzzles between the programs.

The Java program on http://sudoku.sourceforge.net/ is started by fetching the .jar file, and write the following in a command prompt:

java -Xmx256M -cp sudoku_binary_R1_20.jar com.act365.sudoku.SuDoku

See also the home page of Helle Friis Petersen (in Danish) for further links to Sudoku.

Mogens Kjr, mk@lemo.dk

PS: Hvorfor er denne side p engelsk? Fordi din browser er sat til at vise engelske sider som standard.