First of all, taking a look at this forum I saw there is realy masters of Sudoku here. Sincerely congratulations for them all. My name is Renato and I'm just an retired old guy trying to spend my free time building a Sudoku player using the old tools I used to work, a programming language called Clipper. Certainly some system's solutions are solved for the people here and there's much better programs already builded. But even so, if somebody could help me with some primarily questions... here we go:
For while I only can build routines to verify:
- coincidences into the lines, columns and groups
- unique absences also in lines, columns and groups
In the next step i want to build a routine to eliminate candidates in lines, columns or groups witch have to cells with exactly the same two candidates.
I'd like to build more than a Sodoku's solver (as it was few or easy) but a program to play the game.
Do you think?...
Must the program calculate automatically the candidates for all cells in backgroud as a cell is filled? I can be a problem for those who use the key wich show the candidates and for some easy games, calculating the candidates could some the entire game...
May I reveal to user a cell containing one only candidate?
Could, the system, reject a guess in the clues-cells? Could it permit edition of this clues-cells? Could it reject a guesse which don't match with the hidden candidates?
When all the table is fullfilled, I can check coincidences in the lines, columns and gorups and say "It's complete now" Congratulations!" automatically or wait the player to ask to check it?
I thought it could be a nice idea to create a "settings" screen (and a settings file to keep these settings) where I could offer option for the user choose witch automatically resource he or she want to use... One of these settings already created is choose the language. The program is originarily in "Português do Brasil" (brazilian portuguese) and reading this post it's easy to you to imagine why,
Thanks for reading me. I'm attaching the infinished sources and the executable, if somebody can see. As it's for DOS (maximum Win XP), if you want to see it working just create a directory in the root of the drive C:, open a DOS windows and call sudoku.exe. The program will crete the needed data files.
Some questions... whatever, pls say to me.
P.S.: If I could I'd like to keep posting future eventual doubts.
P.S.2 - Pls, excuse my not-too-good English.