It is currently Tue Oct 17, 2017 3:20 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: checkers, (nl: DAMMEN) needs helpers
PostPosted: Mon Jan 16, 2017 8:21 am  (#11) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13980
Location: USA
I once saw a battleship game written in Java HTML as well. :)


Top
 Post subject: Re: checkers, (nl: DAMMEN) needs helpers
PostPosted: Mon Feb 13, 2017 9:17 am  (#12) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 104
So, an important part is done!
A starting picture with stones as layers is used with an mini Pygtk UI to say which stone has to go where (if it is just a bit more matured you will get the plugin ).

Here a first result: too a bit reason for this project:

Attachment:
goenzetx600.gif
goenzetx600.gif [ 84.57 KiB | Viewed 275 times ]


If black knows, he will capture 2 white stones ... to be shown soon :yes

Idea: white tries to save his/her foremost stone against capture but done with a wrong stone!


Top
 Post subject: Re: checkers, (nl: DAMMEN) needs helpers
PostPosted: Thu Feb 23, 2017 6:32 am  (#13) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 104
So, my checker-plugin works already nicely, inclusiv movement and jumps of a Dam (=promoted stone)

Here the output of demonstrating an beginners ERROR (= groenzet).
The next line is created by the plugin:
"start_dambordOK.xcf\r\n"[32, 28][18, 23][37, 32][23, 29][34, 29, 23][17, 22][28, 22, 17][19, 23, 28][28, 32, 37][37, 31, 26]

Updated (yet by hand) it becomes in international notation this:
"groenzet: start_dambordOK.xcf"1. 32 - 28 2. 18 - 23 3. 37 - 32?? 4. 23 - 29 5. 34 - 23 6. 17 - 22 7. 28 x 17 8. [19 x 28 28 x 37 37 x 26]

If interested in start_dambordOK.xcf and the plugin to play 'checkers' with Gimp
send me a personal mail.

The PyGtk (NEEDED!!!) UI for my plugin looks like:
Attachment:
startUIdammen.jpg
startUIdammen.jpg [ 34.74 KiB | Viewed 237 times ]


Next problem: How to make the UI international?
Need Gimp help for using gettext and friends.
Am on Windows, but I think most of (all?) programs for gettext are available.

Any hint is apreciated (or even real help)


Top
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group