Sudoku

From Free Pascal wiki
Revision as of 20:39, 4 January 2020 by Bart (talk | contribs) (→‎Usage)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Deutsch (de) English (en) español (es) français (fr)

About

There is very little to tell about this program. It is just an attempt to make a program which solves Sudoku puzzles.

License

See the sources. I just hope it is a useful demo. Useful as in you can learn something from it.

Author

Matthijs Willemstein
Modifications by Bart

Download

The souces can found at the Lazarus-CCR repository and can be obtained via svn:

svn co https://svn.code.sf.net/p/lazarus-ccr/svn/applications/sudoku/ local/path/to/sudoku

Alternatively you can view the sources through viewcv:

https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/applications/sudoku/

Usage

If you run the program you will see a grid, and two buttons. If you press the "Edit" button, you are able to edit the grid and place the numbers in the grid according to your puzzle.
If you press the "Clean" button, the grid will be cleared.
When you are finished entering the digits press "Solve" and the grid will be filled with the solution.


The program meanwhile has the option to load and save sudoku files.
A smaple sudoku file is incuded in the svn repository. The file format is a simple textfile, it is explained in the sources.

Description

The programs solves all Sudoku puzzles that can be solved by logic. It will not solve the puzzle where you need to guess for a solution.

So it follows these rules (taken from WebSudoku):

The rules of Sudoku are simple. Enter digits from 1 to 9 into the blank spaces. Every row must contain one of each digit. So must every column, as must every 3x3 square. Each Sudoku has a unique solution that can be reached logically without guessing.

Related Sites

Sudoku Solver Online Sudoku Solver Released Under The GNU public license.