Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2016, 11:45 AM   #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 (https://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:	580
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 05:57 PM.
sguerrini97 is offline   Reply With Quote
Old 01-18-2016, 04:03 PM   #2
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, 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 08:04 AM.
knc1 is offline   Reply With Quote
Advert
Old 01-19-2016, 09: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 09:10 AM.
sguerrini97 is offline   Reply With Quote
Old 01-19-2016, 09:20 AM   #4
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, 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, 12: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 07:04 AM.
sguerrini97 is offline   Reply With Quote
Advert
Old 01-19-2016, 12:17 PM   #6
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, 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, 05: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,422
Karma: 85397180
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, 05: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, 08:40 PM   #9
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, 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, 01: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, 05: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
Old 12-03-2020, 02:03 PM   #12
andresmcm
Junior Member
andresmcm began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2020
Device: Kindle Paperwhite 4
Appears to only use a small portion of the screen on my PW4. Any idea on a potential fix?
andresmcm is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:45 AM.


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