Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2016, 12:45 PM   #1
sguerrini97
Enthusiast
sguerrini97 began at the beginning.
 
Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
GTK Sudoku

Hello, I would like to share my sudoku game for the Kindle. I tested it on my KT2, it should work on other devices too but I can't test.

I did this just because I wanted to try to build an application for the Kindle, it's not perfect: there's no way to check if your solution is correct, but you can play.
Also, I made this because the existing gtkSudoku (http://www.mobileread.com/forums/sho...d.php?t=188997) does not work on newer firmwares, mine should

It ships with 12 puzzles taken from http://www.websudoku.com/ but you can put your own puzzles in the "data/puzzles" folder if you want.

Put the sudoku folder in KUAL's extensions folder and you are ready. Cheers.

Screenshot:
Click image for larger version

Name:	screenshot_2016_01_19T23_55_03+0100.png
Views:	193
Size:	12.1 KB
ID:	145676

Download:
sudoku_0.3.zip

Source code:
https://github.com/sguerrini97/gtk_sudoku_kindle

Last edited by sguerrini97; 01-19-2016 at 06:57 PM.
sguerrini97 is offline   Reply With Quote
Old 01-18-2016, 05:03 PM   #2
knc1
Suspended
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 12,215
Karma: 12451693
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by sguerrini97 View Post
It is 2016 now.
https://github.com/sguerrini97/gtk_s...aster/sudoku.c

Last edited by knc1; 01-19-2016 at 09:04 AM.
knc1 is offline   Reply With Quote
 
Advertisement
Old 01-19-2016, 10:07 AM   #3
sguerrini97
Enthusiast
sguerrini97 began at the beginning.
 
Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
Quote:
Originally Posted by knc1 View Post
Ops, fixed that
Also implemented a simple save/load function.

Last edited by sguerrini97; 01-19-2016 at 10:10 AM.
sguerrini97 is offline   Reply With Quote
Old 01-19-2016, 10:20 AM   #4
knc1
Suspended
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 12,215
Karma: 12451693
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by sguerrini97 View Post
Ops, fixed that
Also implemented a simple save/load function.
You make it look so simple, ignoring the funky window title that Kindles require.

What where the major things different between the older one that ran on the older firmware and this one that runs on the newer 5.6.x firmware?
Changes to the window title requirements?
Different GTK version?
knc1 is offline   Reply With Quote
Old 01-19-2016, 01:07 PM   #5
sguerrini97
Enthusiast
sguerrini97 began at the beginning.
 
Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
I read about the strange window title here on the forum but to be honest I didn't dig too much into that.
I wasn't able to get any log when gtkSudoku froze, I think it's linked with a GTK library different from the one available on the 5.6.x firmware (I built this with the labraries taken from my 5.6.5 KT2), but this is only a thought, I didn't dig too much into that neither. I wanted to try to build a native app just for fun, I saw a non-working sudoku so I ended up with this.

Last edited by sguerrini97; 01-23-2016 at 08:04 AM.
sguerrini97 is offline   Reply With Quote
Old 01-19-2016, 01:17 PM   #6
knc1
Suspended
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 12,215
Karma: 12451693
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by sguerrini97 View Post
I read about the strange window title here on the forum but to be honest I didn't dig too much into that.
I wasn't able to get any log when gtkSudoku froze, I think it's linked with a GTK library different from the one available on the 5.6.x firmware (I built this with the labraries taken from my 5.6.5 KT2), but this is only a thought, I didn't did too much into that neither. I wanted to try to build a native app just for fun, I saw a non-working sudoku so I ended up with this.
Some other things here are having or have had trouble with updated libraries in the 5.6.x series firmware.
Probably a good guess.
knc1 is offline   Reply With Quote
Old 01-19-2016, 06:15 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,148
Karma: 82960001
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Nice work!
And it works fine on my pre-5.6.x firmware too.
Maybe gtkSudoku had more dependencies. (Was source code ever posted for it???)

Random question: when a box is selected, would it be possible to distinguish it somehow.
eschwartz is offline   Reply With Quote
Old 01-19-2016, 06:54 PM   #8
sguerrini97
Enthusiast
sguerrini97 began at the beginning.
 
Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
Quote:
Originally Posted by eschwartz View Post
Nice work!
Random question: when a box is selected, would it be possible to distinguish it somehow.
I've added different colors for editable boxes and selected box
sguerrini97 is offline   Reply With Quote
Old 01-19-2016, 09:40 PM   #9
knc1
Suspended
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 12,215
Karma: 12451693
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by sguerrini97 View Post
I've added different colors for editable boxes and selected box
knc1 is offline   Reply With Quote
Old 09-30-2016, 02:29 AM   #10
fractal
Member
fractal began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2016
Device: Kindle Paperwhite PW 2
Working great on my PW2, thank you.
fractal is offline   Reply With Quote
Old 11-28-2016, 06:45 AM   #11
Boris27
Junior Member
Boris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud ofBoris27 has much to be proud of
 
Posts: 7
Karma: 27532
Join Date: Sep 2013
Device: Kindle Touch
Thank you!
Boris27 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk-sudoku twobob Kindle Developer's Corner 9 11-06-2013 08:31 AM
K5 Gtk themes? aditya3098 Kindle Developer's Corner 2 10-30-2012 11:56 PM
linking to gtk chris_c Kindle Developer's Corner 7 08-25-2012 10:19 AM
Is a gtk version possible? frandavid100 Calibre 14 12-16-2008 04:09 PM
Multiplayer Sudoku: Sudoku Combat! PostGrant Lounge 1 06-20-2006 07:14 AM


All times are GMT -4. The time now is 10:30 PM.


MobileRead.com is a privately owned, operated and funded community.