Example Code

sodoku

Code and Documents

Attachment

Download All

SUDOKU is a number-placing puzzle based on a 9 x 9 array.The object is to fill the entire array with number1 to 9 so thateach Column, Row or 3 x 3 Square contains the same number only once.

This program was written to put into practice some of the techniques presented in NI's Intermediate II course. Three of these techniques are:Producer / Consumer loops with EventsNotifier OperationsProperties ManipulationI want to solicit comment, criticism and suggestions on the implementation of this program and, in particular, the user interface.Are there other practical ways for the user to manipulate numbers in the array?For example, could one use the arrow keys to move a highlight over the rows and columns then insert a number via the keypad?Could the mouse pointer arrow symbol change to a number symbol during the drag and drop process? What techniques could be used to speed up program operation? Other requirements:

none

Change control:

none yet

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

Comments
BetaCommunityCo
Member
Member
on

Interesting...

I wonder if there is a complete algorithm available for making a play/solver?

Contributors