Commit graph

19 commits

Author SHA1 Message Date
Robert Ancell
156fd11604 Add license headers 2013-07-08 09:14:29 +12:00
Michael Catanzaro
b0e661b120 Add [White/Black] AI and level properties to PGNGame, and use them 2013-06-08 17:08:45 -05:00
Michael Catanzaro
61975a9248 Set the clock properly when loading a timed game
Previously, we stored the starting time in the PGN in the standardized
TimeControl field. However this is not sufficient for restarting games
in progress, as the time remaining for each player is not stored. So we
must extend PGN to store the time remaining for each player, and look at
that when starting a game. (Custom PGN extensions are kosher; that's
what we're already doing to store opposing AI and difficulty.)

https://bugzilla.gnome.org/show_bug.cgi?id=701579
2013-06-08 16:56:37 -05:00
Robert Ancell
99b745c957 glchess: Revert change 1223f112b87625cd62c6cb9e05e92f2e4142823a - it doesn't work in vala 0.15.1 2012-02-05 17:05:02 +11:00
Ryan Lortie
aae22a98eb glchess: use StringBuilder.data
We have this in Vala now, so use it.
2012-02-04 19:37:54 -05:00
Ryan Lortie
cb18b3c0be glchess: adjust to Vala 0.15
This commit means that gnome-games will now build with Vala 0.15, which
is the version of Vala that all the other GNOME modules are targetting
(and will have a stable release alongside GNOME 3.4).

It also means that older versions of Vala will no longer work.
2012-02-03 11:00:37 -05:00
Robert Ancell
151402247b Work with Vala 0.14 2011-07-09 16:09:48 +02:00
Thomas Hindoe Paaboel Andersen
d1465ba964 revert e039ba25
too high dependency on vala for now
2011-07-05 22:57:56 +02:00
Robert Ancell
f92c5e38d5 Work with Vala 0.14 2011-07-01 12:00:27 +01:00
Robert Ancell
09e3a02c62 Escape tag values, based on a patch by Ted Ying 2011-07-01 12:00:27 +01:00
Robert Ancell
7de7bf3a0c chess: Run tests on make check, add tests for PGN files, remove obsolete manual test PGN files 2011-02-22 12:34:19 +11:00
Robert Ancell
8e88374b09 Only use game clock if configured 2011-01-09 14:25:33 +11:00
Robert Ancell
dcc6c38133 Update history index when game saved, fix date for games 2011-01-01 14:58:25 +11:00
Robert Ancell
6d1fbfc29d Autosave games 2011-01-01 14:24:41 +11:00
Robert Ancell
04bae1979d Tidy up history code 2011-01-01 13:42:03 +11:00
Robert Ancell
859364f860 Remove non-required GLib namespaces 2011-01-01 12:42:50 +11:00
Robert Ancell
ea046f6086 Add a test program 2010-12-27 13:31:07 +11:00
Robert Ancell
9073d4e405 Support PGN games with FEN setup 2010-12-27 12:47:46 +11:00
Robert Ancell
5d961fd85c Port of glchess from Python to Vala. 3D is disabled for now as it doesn't work in GTK3 2010-12-08 18:18:30 +11:00