Commit graph

11 commits

Author SHA1 Message Date
Sahil Sareen
16037c46f8 Fix bad pgn load behaviour - invalid moves in pgn
Don't load a pgn with invalid moves,
prompt a dialog to the player, and
start a new game.

https://bugzilla.gnome.org/show_bug.cgi?id=746218
2015-05-03 22:56:48 +05:30
Sahil Sareen
fe69cc5a02 Code Cleanup 2015-02-19 20:49:36 +05:30
Sahil Sareen
3c99d3de82 Saving a completed game due to timeup saves the timer as infinity
When loading the completed games-
1. show the pgn file name in header-subtitle.
2. due to timeout - Show timer time correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=741966
2014-12-30 11:14:24 -06:00
Michael Catanzaro
a4148ca589 Do not directly pause/unpause the chess clock
https://bugzilla.gnome.org/show_bug.cgi?id=728202
2014-07-06 12:11:01 -05:00
Michael Catanzaro
be821cf7d6 Remove ChessPlayer.start_turn()
It's unused
2014-06-25 21:37:44 -05:00
Michael Catanzaro
f32dcec4d9 ChessGame: do not complete move if game is over
Fixes clock unpausing when using Undo after gnuchess has decided to
report a move but before it has actually done so (which is no longer
possible after the previous commit, anyway)
2014-06-25 15:16:25 -05:00
Michael Catanzaro
10e74eb03f Better workaround for signal misfires 2014-06-22 21:54:09 -05:00
Michael Catanzaro
cc04b52312 trivial: move methods related to claim draw 2014-04-08 22:46:37 -05:00
Michael Catanzaro
2ed16b90f7 Prompt the player when claiming a draw is possible
https://bugzilla.gnome.org/show_bug.cgi?id=727789
2014-04-08 22:45:25 -05:00
Michael Catanzaro
b1128fa66b Add ChessGame.can_claim_draw()
https://bugzilla.gnome.org/show_bug.cgi?id=727789
2014-04-08 22:45:25 -05:00
Michael Catanzaro
17f0005f34 Split several files off into an internal library
This will be a static convenience library, so we don't have to recompile
all of these files for each test binary.
2014-04-08 21:50:59 -05:00
Renamed from src/chess-game.vala (Browse further)