SRL Archive - Other Scripts

Scarduku


Rick

2009-11-01 19:29:09

Scarduku v2


I found this script in an old backup of mine, and I thought, why not update it ?

Scarduku:
This is a Sudoku game in Scar.
* Yes, I did realise Scarduku should probably be Scardoku …

Features:
* Answer Checking
* Puzzles from files
* Timing
* Saving

Future Updates:
* Better File Handling [Multiple Puzzles in a Single File]
* Improve Timing
* Generator/Solver

Credits:
Original credits apply.
Cruel for the idea of the puzzle management.
Ron for pointing out bugs in the original version. Although I rewrote most things. And for looking through his DFM Parser code for file manipulation.

Notes:
This is a rewrite of http://www.villavu.com/forum/showthread.php?t=4509.

Puzzles are in Scarduku files or Text files. To build an example file change the constant "BuildDemo" to true and run the script.
If you want to make your own puzzle you can do so as follows:
First 81 numbers are the challenge itself. In columns up to down. Blank squares are "0" [Zero]. The next 81 one characters are the solution. 162 characters in total.

If you do make your own please post them :)

I have attached an easy puzzle as a text file.

Enjoy.

All that is man

2009-11-01 19:53:38

Simply amazing…

Rick

2009-11-02 15:26:45

Thanks,
Feedback anyone ?

Dan Cardin

2009-11-03 06:48:40

random puzzle generation would be nifty. I also think drawing the board, rather than using inputs would look nice, but that would probably be a lot more work than you'd care to do.

Wizzup?

2009-11-03 06:50:56

From: Dan Cardin
random puzzle generation would be nifty. I also think drawing the board, rather than using inputs would look nice, but that would probably be a lot more work than you'd care to do.


Generating random puzzles is harder than solving them, it may be a fun challenge. :)

marpis

2009-11-03 08:21:19

From: Wizzup?
Generating random puzzles is harder than solving them, it may be a fun challenge. :)


Can't you just have a ready sudoku table and randomly pick some of the numbers away? :O

Wizzup?

2009-11-03 08:38:37

From: marpis
Can't you just have a ready sudoku table and randomly pick some of the numbers away? :O


That's not random. :p

Dan Cardin

2009-11-03 13:58:41

even if you randomly create the table, and randomly take numbers away, you still need to make sure that the numbers you dont take away numbers needed to solve the puzzle, and dont take away only certain ones, that still make it challenging. Making a randomly generated puzzle would probably be quite the challenge.