Su-per-Doku

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 64%
Description:

I was thinking about the lack of games that have been written using superkaramba (I think this is the first). I've always found sudoku an addictive puzzle game, and always wanted to write one, so I could play it when I wanted instead of waiting for the paper to arrive. So here it is; a sudoku game for superkaramba.

Features:

- Generates its own 9x3x3 puzzles;
- Four levels of difficulty;
- Toggle hints on/off;
- Enter and display possible candidates for cells;
- Auto-solve;
- Status messages to let you know what's going on;
- Auto-save on every move, and auto-restore on restart.

Please read the user guide on the download page. Have fun. If you find any bugs, or want any features, please post to my forums (see link below).

Last changelog:

13 years ago

2.1

Fixed persistent notes issue on creating a new game.

2.0

I've changed the puzzle generator and solver. I've borrowed these from python sudoku (http://pythonsudoku.sourceforge.net). This provides a faster and more robust generator. It also means that the difficulty levels mean something. Previously, there wasn't much difference between the difficulty levels. Now there's a clear difference.

1.1

This version brings some new features, interface enhancements and bug fixes:


* Your game is now saved every time you make a move. So if you turn off Su-per-Doku half way through a game, it will be restored exactly as you left it the next time you start Su-per-Doku;

* Numbers entered into a cell are now green. They will turn red once you press enter. This means that you can tell at a glance whether you've entered a number into the puzzle properly. Any green numbers are not entered properly;

* Numbers deleted from a cell are deleted out of the puzzle's progress counter. Previously, these were not deleted, and you could have the strange situation where the puzzle was solved, even though some boxes appeared to be empty (because you'd deleted the number, but the puzzle still thought the cell was filled correctly).

1.0

First release.

timbuck02

12 years ago

the show missing/incorrect highlights everything (in red) even if it is correct.

Report

C

Matti

12 years ago

What version are you using? Can you post a link to a screenshot?

Report

timbuck02

12 years ago

I can't post a screen shot here, but here's the details:

I am running RH FC1, KDE 3.5 and Superkaramba 0.39

The game level I'm playing is "torture", and if put in a correct number (one that's obviously correct) and select the "show missing/incorrect" button all boxes not standard turn red.

Report

C

Matti

12 years ago

How do you know it's correct? I had one guy email me complaining that the puzzle never told him it was solved when he thought he'd completed it correctly. He had not read the rules of sudoku fully, and had many of the numbers wrong. Can you host your screenshot on http://imageshack.us. Then I can have a look at it to see what's going on.

Report

timbuck02

12 years ago

here's the before shot
http://img368.imageshack.us/img368/5455/before7wl.png

here the screen shot after toggling "show missing/incorrect"
http://img359.imageshack.us/img359/999/after5dr.png

Report

C

Matti

12 years ago

I see where the issue is - although I'm not convinced it's a bug yet - I'll need to check the code.

At the moment, you need to enter the number and then press for su-per-doku to recognise that you've entered a number, otherwise it doesn't know whether the number should be a note or an actual answer. If you press enter after putting a number in, the "show missing/incorrect" should work.

If a number is green, it is only preliminary. Press enter to enter it into the puzzle as an answer.

Report

timbuck02

12 years ago

that was it, I wasn't pressing after typing in the number. Thanks!

Report

timbuck02

12 years ago

here's the before shot
http://img368.imageshack.us/img368/5455/before7wl.png

here the screen shot after toggling "show missing/incorrect"
http://img359.imageshack.us/img359/999/after5dr.png

Report

fieberis

13 years ago

Changing Status to: creating puzzle ...
Call to meterClicked failed
Traceback (most recent call last):
File "/root/Desktop/sudoku/skudoku.py", line 412, in meterClicked
setupPuzzle(widget)
File "/root/Desktop/sudoku/skudoku.py", line 179, in setupPuzzle
layoutGrid(widget)
File "/root/Desktop/sudoku/skudoku.py", line 91, in layoutGrid
cell = karamba.createInputBox(widget,grid_ref_x[j]+1,grid_ref_y[i]+1,21,21,'')
AttributeError: 'module' object has no attribute 'createInputBox'
What could be wrong?

Report

C

Matti

13 years ago

You have a version of superkaramba that is lower than v0.37.

Report

xam

13 years ago

This is a very cool karamba applet but I would like to see this also as a kde application.

Report

Renze

13 years ago

http://www.kde-apps.org/content/show.php?content=28792

Report

C

Matti

13 years ago

Why?

Report

Ekardnam

13 years ago

sys.path.insert(0, '/home/hans/Design/Karamba/skudoku-1.0.skz')
Traceback (most recent call last):
File "/home/hans/Design/Karamba/skudoku-1.0.skz/skudoku.py", line 3, in ?
File "/home/hans/Design/Karamba/skudoku-1.0.skz/MakeSudoku.py", line 3, in ?
File "/usr/local/lib/python2.4/random.py", line 68, in ?
import _random
ImportError: /usr/local/lib/python2.4/lib-dynload/_random.so: undefined symbol: _PyArg_NoKeywords

Sorry, what do I need? :/
(I'm using KDE 3.5.1, Superkaramba 0.28 and Slackware 10.2).

Thanks in advance! This theme looks really neat :3

Report

C

Matti

13 years ago

Looks like there's something wrong with your python install. It's having trouble importing the random module, which is pretty standard.

Report

Hintzy

13 years ago

This makes me ridiculously happy since I visit websudoku.com so frequently! Now I don't even have to launch a browser, the puzzle is on my desktop! I can feel my productivity dropping already...

Thanks, as always, and keep up the great work! :-D

Report

mebrelith

13 years ago

This is great, awesome, excellent job!!!

Report

pembo13

13 years ago

I like the idea, but why make a game in Karamba?

Report

peluzza

13 years ago

... early 80's:
"why to create games for computers? are working tools..."

be in the 21th, desktop also its fun.

nice work. keep working... and have FUN!!!

K_enjoy

Report

C

Matti

13 years ago

why not? It's a wrapper for a limited subset of the kde gui toolkit. It has all the bits that I needed to create a sudoku game. I like sudoku, and know the superkaramba api, and wanted to make a game. that's it.

Report

velista

13 years ago

Do you plan to add translation support?

Report

C

Matti

13 years ago

I hadn't, as the amount of text in the theme is quite minimal. Managing translations is quite time consuming.

Report

loggeman

13 years ago

Well... If you decide to make translations, You won't need to write a new i18n-engine... =) You got one really good workin'!!

//Logge

Report

p0z3r

13 years ago

Another fantastic theme from Matt. Keep on keepin on...

Report

13 years ago

2.1

Fixed persistent notes issue on creating a new game.

2.0

I've changed the puzzle generator and solver. I've borrowed these from python sudoku (http://pythonsudoku.sourceforge.net). This provides a faster and more robust generator. It also means that the difficulty levels mean something. Previously, there wasn't much difference between the difficulty levels. Now there's a clear difference.

1.1

This version brings some new features, interface enhancements and bug fixes:


* Your game is now saved every time you make a move. So if you turn off Su-per-Doku half way through a game, it will be restored exactly as you left it the next time you start Su-per-Doku;

* Numbers entered into a cell are now green. They will turn red once you press enter. This means that you can tell at a glance whether you've entered a number into the puzzle properly. Any green numbers are not entered properly;

* Numbers deleted from a cell are deleted out of the puzzle's progress counter. Previously, these were not deleted, and you could have the strange situation where the puzzle was solved, even though some boxes appeared to be empty (because you'd deleted the number, but the puzzle still thought the cell was filled correctly).

1.0

First release.

product-maker 48 90

File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
2.1
updated Dec 02 2006
added Feb 05 2006
downloads today
0
page views today 1