GNUDoku Screenshot A free program for creating and solving Su Doku puzzles.

You can use GNUDoku to challenge yourself, to compute solutions, or to verify your own solutions.

A Su Doku puzzle is a 9x9 grid which must be filled with numbers between 1 and 9 such that each row, column, and 3x3 square contains all 9 numbers.

License: free
Requirements: gtkmm-2.4

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
noyesnonononoyes
Suggest an update

Comments

Installation was interesting. After installing the Debian gtkmm development libraries, it still didn't compile, giving me:
g++ GNUDoku.C -o GNUDoku `pkg-config gtkmm-2.4 --cflags` -DVERSION=\"0.9\" `pkg-config gtkmm-2.4 --libs`
GNUDoku.C: In member function `void GNUDoku::guiSetup(Gtk::Window&)':
GNUDoku.C:299: error: `set_image' undeclared (first use this function)
GNUDoku.C:299: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
GNUDoku.C:337: error: `ABOUT' undeclared in namespace `Gtk::Stock'
GNUDoku.C: In member function `void GNUDoku::showAbout()':
GNUDoku.C:367: error: `AboutDialog' undeclared in namespace `Gtk'
GNUDoku.C:367: error: parse error before `;' token
GNUDoku.C:368: error: `dialog' undeclared (first use this function)
make: *** [GNUDoku] Error 1

Like that's going to stop me. I commented out the relevant sections of the code (The inside of the about dialog function, and any line containing "set_image"; also, I changed ABOUT to QUIT) , and it compiled and ran. (On a completely unrelated note, the website is asking for packagers.)

The actual game works well for Su Doku. A way to print out puzzles might be an interesting addition, but I don't need it. There is no installation needed, and the entire game is contained within the binary.

Anyway, game's fine, installation needs some work.

Re: GNUDoku posted by jcspray on Jun 24 2005 4:01 AM
The compilation errors you've posted are due to the requirement for gtmm-2.4 version 2.6: you probably have version 2.4.
Re: GNUDoku posted by evilmrhenry on Jun 24 2005 1:32 PM
The 2.6 Debian version is still in the "experimental" stage, which means I'm not going to install it. (I'm back in Testing.) Still, it does work, though weirdly.
Re: GNUDoku posted by anonymous on Jul 9 2005 1:16 AM
Here's a patch file to solve your problems. It's better to upgrade your installation GTKMM of course but quite frankly, I can't be bothered so this will have to do for now.

8<-------------- snip --------------

--- GNUDoku.C.orig 2005-07-03 22:13:02.000000000 +0100
+++ GNUDoku.C 2005-07-09 09:35:29.000000000 +0100
@@ -351,24 +351,21 @@
Gtk::Button &generatebutton = *Gtk::manage(new Gtk::Button);
generatebutton.set_label(_("_Generate"));
generatebutton.set_use_underline();
- generatebutton.set_image(*Gtk::manage(
- new Gtk::Image(Gtk::Stock::EXECUTE, Gtk::ICON_SIZE_BUTTON)));
+ //generatebutton.set_image(*Gtk::manage(new Gtk::Image(Gtk::Stock::EXECUTE, Gtk::ICON_SIZE_BUTTON)));
generatebutton.signal_clicked().connect(
sigc::mem_fun(*this, &GNUDoku::generatePuzzle));

Gtk::Button &solvebutton = *Gtk::manage(new Gtk::Button);
solvebutton.set_label(_("_Solve"));
solvebutton.set_use_underline();
- solvebutton.set_image(*Gtk::manage(
- new Gtk::Image(Gtk::Stock::APPLY, Gtk::ICON_SIZE_BUTTON)));
+ //solvebutton.set_image(*Gtk::manage(new Gtk::Image(Gtk::Stock::APPLY, Gtk::ICON_SIZE_BUTTON)));
solvebutton.signal_clicked().connect(
sigc::mem_fun(*this, &GNUDoku::solvePuzzle));

Gtk::Button &clearbutton = *Gtk::manage(new Gtk::Button);
clearbutton.set_label(_("_Clear"));
clearbutton.set_use_underline();
- clearbutton.set_image(*Gtk::manage(
- new Gtk::Image(Gtk::Stock::CLEAR, Gtk::ICON_SIZE_BUTTON)));
+ //clearbutton.set_image(*Gtk::manage(new Gtk::Image(Gtk::Stock::CLEAR, Gtk::ICON_SIZE_BUTTON)));
clearbutton.signal_clicked().connect(
sigc::mem_fun(*this, &GNUDoku::clearBoxes));

@@ -390,10 +387,12 @@

Gtk::HBox &buttonbox = *Gtk::manage(new Gtk::HBox);
buttonbox.set_spacing(12);
- Gtk::Button &aboutbutton = *Gtk::manage(new Gtk::Button(Gtk::Stock::ABOUT));
+ /*
+ Gtk::Button &aboutbutton = *Gtk::manage(new Gtk::Button());
aboutbutton.signal_clicked().connect(
sigc::mem_fun(*this, &GNUDoku::showAbout));
buttonbox.pack_start(aboutbutton);
+ */
Gtk::Button &quitbutton = *Gtk::manage(new Gtk::Button(Gtk::Stock::QUIT));
quitbutton.signal_clicked().connect(
sigc::mem_fun(*this, &GNUDoku::doQuit));
@@ -437,6 +436,7 @@
}


+/*
void GNUDoku::showAbout()
{
Gtk::AboutDialog dialog;
@@ -447,6 +447,7 @@

dialog.run();
}
+*/


void GNUDoku::doQuit()
Re: GNUDoku posted by anonymous on Jul 13 2005 5:59 AM
Thanks for the patch! Had the same problem here.
Re: GNUDoku posted by anonymous on Jul 19 2005 9:56 AM
How must I use this patch? Sorry, I am a newbie.
cool! I solve this thing monthly - one of my favourite puzzles. Now, too bad this uses gtkmm and/or no static build is present. I'll try it as soon as this "is fixed".
Re: GNUDoku posted by anonymous on Jul 29 2005 11:36 PM
What is wrong with gtkmm? It's probably the nicest c++ gui for linux out there, more people should use it since its far nicer than regualar gtk+ and a little better than QT since it takes advantage of modern advancements in c++ rather than using a precompiler. Though to be honest I wish gnudocu would work with gtkmm-2.4 since I really don't feel like upgrading to use it.
Re: GNUDoku posted by evilmrhenry on Jul 30 2005 12:01 AM
I feel I should point out that part of the changelog for the new version includes the ability to compile with 2.4.
I haven't tried it yet, and I think I won't be able to try it. I don't have gtkmm installed, and my GTK is old (2.2 instead of 2.4). I won't try to update my system until I feel I REALLY need it.

I would like to try the GNUDoku, but only if it required only GTK (and an old version, like 2.2). At least I like that it does not require Gnome.

One question: Can I "write" my puzzle in GNUDoku and ask it to solve it? Or it will only solve puzzles generated by the program itself?
Re: GNUDoku posted by evilmrhenry on Jun 27 2005 8:57 PM
You can write your puzzle in, and have it solve it. (Note: if the puzzle is unsolvable, then it will go into an infinite loop, so check your work.)
GTK 2.2 posted by CrazyTerabyte on Jul 11 2005 6:17 PM
Any plans to port it to GTK 2.2? I want to play this, but I don't want to have the trouble of upgrading my system now... :)
Re: GTK 2.2 posted by CrazyTerabyte on Nov 21 2005 3:56 PM
Ok, GTK 2.2 is too old, but any plans to port it to GTK 2.4? gtkmm-2.6 is still masked (~testing) on gentoo... :)
Game rocks hard. I played Su Doku for the first time with the game and it kicks arse. The game's interface seems pretty good too.
The game itself is fine (only running the gtkmm-2.4 version), but the generator engine seems to produce 'circular' dependencies a lot (i.e., a bunch of 4, 6 or 8 numbers that can be filled in two different ways).
As for suggestion for improvements: Would be nice if the 'solve' button would present the solution in a way that better shows which numbers were given/already filled out and which the computer put in. Would also be nice to have an undo or at least restart button. A Hint button to show a posible next step to fill in (either by only showing which field can be filled, or by also giving the value to put in there).Maybe an additional small text area with each number field to write in things like numbers possible in that field

Pit

Re: GNUDoku posted by CrazyTerabyte on Aug 2 2005 1:33 AM
Would be nice if the 'solve' button would present the solution in a way that better shows which numbers were given/already filled out and which the computer put in.

I think there should be different styles (i.e. fg/bg colors) for "fixed" numbers, player written numbers and computer solution numbers. This is easy to implement and will improve the gameplay a lot.

Maybe an additional small text area with each number field to write in things like numbers possible in that field

This may be very useful.

Feature request: some way to output a printed puzzle. I would suggest .png output or something. The goal is to have something that can be printed, then solved away from the computer.
Re: GNUDoku posted by anonymous on Aug 3 2005 2:40 PM
I second this request.

I would also like to have a way to make annotations on-screen.. but I am not sure how this would look like. there are two annotation schemes described in wikipedia. this may be a start.. or maybe have a look at the game "Einstein's puzzle" (IIRC) also on happypenguin.. the way to show 6 little boxes (or nine for GNUDoku) inside each box to show the numbers that are still available could be followed.

Thanks for the game.

Re: GNUDoku posted by nath on Nov 22 2005 1:34 AM
Try Ksudoku for printing in the meantime.
Re: GNUDoku posted by anonymous on Dec 11 2005 1:51 PM
Try pysudoku instead! It has a super PDF Output and is easy scriptable. I made one to generate 4 sudokus on one A4 page with solution on another one.

Log in or register to rate this game or post a comment.