
| · Forums and IRC Rules · Portal |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
| Today's Top 10 Posters · My Last 10 Posts | Board and IRC Rules · Help · Members · Calendar |
| Forum | Topics | Replies | Last Post Info | |
|---|---|---|---|---|
![]() |
Older topics Here you can access all topics posted from May 12th 2005 to Apr 9th 2006 (In read only mode). |
1126 | 15694 | 9 Apr, 2006, 11:06 In: [GAME]Learn how to count to...By: DJ Omnimaga |
| Pages: (2) [1] 2 ( Go to first unread post ) | ![]() ![]() ![]() |
| patz2009 |
Posted: 23 Oct, 2007, 19:57
|
||
|
Member Group: Members Posts: 14 Member No.: 2792 Joined: 29 Sep, 2007 |
As some of you may know, I have spent a while making a sudoku game, known as Patz Calculator Sudoku, or PCSUDOKU. It is a sudoku program for the TI-83 Plus series of calculators, and features:
Anyway, here are some screenshots: ![]() ![]() You can download Patz Calculator Sudoku from here. My to-do list:
|
||
| DJ Omnimaga |
Posted: 23 Oct, 2007, 22:52
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
Well I never played sudoku since I was never into puzzle games but your program looked nice. How long does it take to render a random sudoku?
-------------------- |
| patz2009 |
Posted: 23 Oct, 2007, 23:02
|
|
Member Group: Members Posts: 14 Member No.: 2792 Joined: 29 Sep, 2007 |
On my 84+, making the random sudoku usually takes no more than 4 seconds. Removing the blocks are what takes up the most time (notice how the Simple difficulty takes a much shorter time to load than Suicidal)
|
| DJ Omnimaga |
Posted: 23 Oct, 2007, 23:15
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
sounds good, not too long, I may give it a try at one point
-------------------- |
| Ranman |
Posted: 23 Oct, 2007, 23:16
|
|
Geezer Group: Managers Posts: 971 Member No.: 26 Joined: 11 Apr, 2006 |
I really like Sudoku!
This game is laid out very nicely! Awesome job! -------------------- Ranman
Ultima V: Warriors of Destiny - by Lord British Progress = 94.5% - Game engine = 61.2Kb |
| Liazon |
Posted: 24 Oct, 2007, 16:45
|
|
Staff Group: Coders Of Tomorrow Posts: 1491 Member No.: 24 Joined: 11 Apr, 2006 |
cool!
how're you generating the sudokus? -------------------- Projects: In need of sprites...
|
| patz2009 |
|
||||
|
Member Group: Members Posts: 14 Member No.: 2792 Joined: 29 Sep, 2007 |
I'm not entirely "generating" the sudokus per-se, but more like scrambling it.
I give it an already valid sudoku, and it scrambles it up. This idea was actually first of HarrierFalcon, but I modified it a bit. Glad to hear that people are enjoying it. My mission with it was to be simple, fast, and small. Hopefully I have done at least that Edit: Actually, thanks for bringing the scrambling routine to my attention. I'm going to optimize it to this:
Should take up less space and go quite a bit faster |
||||
| DJ Omnimaga |
Posted: 24 Oct, 2007, 21:13
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
do you have an idea of how many combinatiuon possible there is?
-------------------- |
| TheStorm |
Posted: 24 Oct, 2007, 21:39
|
![]() Extreme Poster Group: Members Posts: 250 Member No.: 500 Joined: 30 May, 2007 |
It looks goo but I still prefer Tari Sudoku2 with its cool eye candy and other fun stuff.
-------------------- >(v') BLUB shall rule the world
"If you've done something right no one will know that you've done anything at all" -Futurerama |
| Liazon |
Posted: 25 Oct, 2007, 18:13
|
|
Staff Group: Coders Of Tomorrow Posts: 1491 Member No.: 24 Joined: 11 Apr, 2006 |
ya, swapping was the only thing I could think of. but there's kinda only so much you can do w/ swapping
as you also just randomly taking out #s? or are you using preset masks to remove #s? -------------------- Projects: In need of sprites...
|
| patz2009 |
Posted: 25 Oct, 2007, 18:26
|
||
|
Member Group: Members Posts: 14 Member No.: 2792 Joined: 29 Sep, 2007 |
Using preset masks doesn't work so well when using different levels of difficulty, so I ended up just randomly removing them. Though it works slower, it reduces program size and allows for more difficulty levels. Funny you should mention it, today I got bored at school and fixed up my blanking routine.
Anyway, in general news, I have made most of the optimizations I'm planning to do. I've added the feature which shows which numbers originally were generated with the puzzle. It marks them with a small line over the number on the screen. Those marks are even saved when saving and reloading your game. If I get any more ideas, I'll implement them, else I think I'm pretty much finished with this project. Now down to 2104 bytes. I plan to make my final release as a halloween present to you all, so check back here on the 31st |
||
| Ranman |
Posted: 25 Oct, 2007, 19:04
|
||
|
Geezer Group: Managers Posts: 971 Member No.: 26 Joined: 11 Apr, 2006 |
Now that is a pretty clever idea! How do you adjust the difficulty level? -------------------- Ranman
Ultima V: Warriors of Destiny - by Lord British Progress = 94.5% - Game engine = 61.2Kb |
||
| patz2009 |
Posted: 25 Oct, 2007, 20:21
|
|
Member Group: Members Posts: 14 Member No.: 2792 Joined: 29 Sep, 2007 |
If you look at the above code, you can see its blanking routine. D is the variable I have set aside for the puzzle's difficulty. It removes more blocks as the difficulty increases.
26 for Simple, 34 for Easy, 42 for Medium, 50 for Hard, and 58 for Suicidal. Edit: Oh, and if you meant how to adjust the difficulty level in the game, go to difficulty on the main menu and press 2nd or Enter. |
| Liazon |
Posted: 25 Oct, 2007, 22:28
|
|
Staff Group: Coders Of Tomorrow Posts: 1491 Member No.: 24 Joined: 11 Apr, 2006 |
interestingly, mathematicians say that 17 is the smallest # of known squares for a solvable single solution sudoku.
duno how they proved that, and duno if that means every 17 # sudoku is solvable. -------------------- Projects: In need of sprites...
|
| burr |
Posted: 25 Oct, 2007, 23:28
|
||||
|
Member Group: Members Posts: 25 Member No.: 214 Joined: 16 Oct, 2006 |
You don't need to store C to a variable; Ans can be used instead.
However, if you use the randInt(1,9 statement elsewhere in your program, you can store it to one of the graphing variables (such as u or v) and then use that instead.
-------------------- |
||||
Pages: (2) [1] 2 |
![]() ![]() ![]() |