From: mcsynth on
Les,

It seems as there are some major weak points in my code.  It will
take a major re-write to fix, but I won't have time until after
Christmas.  It only take a couple of wrong guesses to get
hopelessly scrambled.

It all seems to do with the progressive nature of eliminating possible
numbers from each square.  I think that each time a number is
entered, I will need to re-calculate the entire block, row or column
from scratch, rather than sucessively eliminating numbers based only on
the current entry.

Thanks for the yellow/gray block color scheme suggestion.  It works much better.

Happy Holidays,
Mcsynth
From: mcsynth on
Les,
As promised, I worked on the Sudoku Helper over the holidays, and I think it's complete.  There is a Game folder and each game is given a timestamped folder to save game files.  You can also and reload intermediate values as you play.  It automatically saves the clues when you press the seed button and saves the solution when the puzzle is solved. 
I worked out the number logic to make it foolproof, as near as I can tell.  Please let me know what you think.
Happy New Year,
Mcsynth


Sudoku.zip:
http://forums.ni.com/attachments/ni/170/158971/1/Sudoku.zip
From: Albert Geven on
Compliments for the implementation and the programming style.
Albert
From: Les Hammer on
Good Job. 
~~Les
From: jdebuhr on
Albert Geven wrote:

Hi
It is easy to get that functionality. Create a property node for "Remain" (this shows the numbers possible for that field).
next step crate a boolean, I always use the classic dialog checkbox withoutt showing the boolean text.
Place this boolean checkbox in a new event frame that handles the change value events of this boolean,and connect the output of this boolean to the property node of Remain.As an extra you could make Remain invisible at startup.
succes

YEp I added the Boolean to the version I downloaded.. it is very cool and well designed, Now I just need to try out some puzzles, although I hear that Sudoku is rather addicting
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4
Prev: LabView basics
Next: how to configure modbus using LabVIEW?