Source i (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
Become a Fan
5.0

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:

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.


Ratings & Comments

24 Comments

timbuck02

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

Matti

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

timbuck02

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.

Matti

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.

timbuck02

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

timbuck02

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

Matti

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.

timbuck02

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

fieberis

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?

Matti

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

xam

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

Matti

Why?

Renze
Ekardnam

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

Matti

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

Hintzy

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

mebrelith

This is great, awesome, excellent job!!!

pembo13

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

Matti

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.

peluzza

... 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

velista

Do you plan to add translation support?

Matti

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

loggeman

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

p0z3r

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

Pling
0 Affiliates
Details
license
version 2.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Karamba & Superkaramba from Matti:

Liquid Weather ++
Matti
last update date: 17 years ago

Score 4.7

sKalcuverter
Matti
last update date: 18 years ago

Score 5.0

sKadsense
Matti
last update date: 18 years ago

Score 5.0

bubble burst
Matti
last update date: 18 years ago

Score 5.0

translate plus
Matti
last update date: 18 years ago

Score 5.0

Date Calculator
Matti
last update date: 18 years ago

Score 5.0

Other Karamba & Superkaramba:

Evolution Task Theme (for Karamba)
L0rclA5CII
last update date: 22 years ago

Score 5.0

Karambaqua
manor
last update date: 22 years ago

Score 5.0

Karamba Print Queue Monitor
Praxxus
last update date: 22 years ago

Score 5.0

The DarkGirl wallpaper and Karamba theme
xray
last update date: 22 years ago

Score 5.0

TecnoBar for Karamba
ZIOlele
last update date: 22 years ago

Score 5.0

Karamba Ink Level Monitor
Praxxus
last update date: 22 years ago

Score 5.0