From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Sudoku solver

Code and Documents

Attachment

Solves Sudoku puzzles easy and middle levels.

Simple editor to enter, load and save Sudoku puzzles. Interactive error detection, step execution.

Currently the solver consists from one stage:

- Slicer - check for each cell in all 3x3 clusters (by taking in account the row and column passing through this cell) if there is only one possible solution. Fill the cell and repeat the process until no more solutions were found.

In process is the development of the second stage (Twince detection) which will increase the strength of the solver.

All sources for LV2014 included. Inlcuded also EXE for 64 bit engines.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors