News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Sudoku Installer

Started by PBrennick, February 06, 2009, 11:18:14 PM

Previous topic - Next topic

herge


Hi PBrennick:

That did not work!

[attachment deleted by admin]
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

herge


Hi PBrennick:

Let's try that again.

Here are my files.

Regards herge.




[attachment deleted by admin]
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

PBrennick

herge,
You are assembling it as a console App. Don't do that, it is a Windows App. That is why you are having trouble. Also, if you rename all the source files, as you have, you need to fix the .RC file to reflect those changes. Good luck.  :U

Paul
The GeneSys Project is available from:
The Repository or My crappy website

herge


Hi Paul:

I down loaded it again SudokuInstaller again.
This time it works! Control and Fubcton keys
work as well.

Thank You.

Regards herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

PBrennick

herge,
I am glad that you like it. Feel free to play with the code. It is yours, now. It may help you understand programming the GUI. Later today, I will post a link that will allow you or anyone else to download the version with the 20,000 puzzles. Some changes are being made as we speak. I am working on something that will function as a separate program that will allow you to print worksheets. This function is there, now, but I have a request for a more robust worksheet handler. Evidently there are some SERIOUS Sudoku clubs out there!

Also, Sudoku has been changed to a single-instance type app. A user had a problem with losing a saved puzzle because there was more than one instance running and it caused some collision with the INI file handling mechanism. This will be in the version I will provide a link to. That person was VERY irate and tore off a piece of my butt and handed it to me so here I sit, buttless, trying to prevent problems like this from re-occurring. My lands, you would have thought it was the end of the world or something! ::)

Paul
The GeneSys Project is available from:
The Repository or My crappy website

herge


Hi Paul:

Is there a way to input a Sudoku game from a newspaper.

I know I will have to input 81 digits myself.

Could it be done by modifying the INI file?

Regards herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

PBrennick

Yes. That feature IS on the todo list, though. For now, the INI file is your best bet. Be careful, though.

I think I will add a user file, a text file with 81 characters per line in the range of 0-9 where 0 will represent an empty cell. I will allow users to browse that file.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

herge


Hi Paul:

On a slightly different note. The sum of 1 to 9 = 45=9 * ( 9 + 1) / 2.
Could we use the fact that all columns total to 45.

Regards herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

PBrennick

Hi herge,

Yes, all rows, columns and sub-grids MUST have that total. It is not a useful way of testing for a correct solution, however, because you could have five cells in a row all containing a '9' and the other four blank and your test would assume it is correct. You COULD preface that test with a test to see if all cells have a value, but that would not work even though it seems like it would. The method I employed may not be the best but it has this one attribute, it always works correctly.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

PBrennick

All the files in the Sudoku Project along with their sources can be downloaded from my crappy website.

Changes and fixes included are:
  - Sudoku is now a single instance type application.
  - The link to my crappy website in the About Box will now work on machines with no default browser setting.
  - Zeroes are now suppressed in the worksheet printouts.
  - Worksheet printouts are now being done via Puzzles.exe (source included).
  - Puzzles.dll (source included) is now being used which means 20,000 chances to feel stupid.

Ray, did I mention everything?

In the oven:
  - Puzzle entry, with archiving, by the end user.

In the near future:
  - Pack the data in the DLL to save space (thanks for the idea, Tedd).
  - Setting up classes in the Worksheet so the Print link doesn't print.

Paul
The GeneSys Project is available from:
The Repository or My crappy website