Commit graph

14 commits

Author SHA1 Message Date
Michael Catanzaro
9411e198b8 Fix some new switch warnings 2020-12-05 10:04:20 -06:00
Michael Catanzaro
f4961bd57b Improve ChessClock
Make most of the members private and expose new properties to get the
remaining time for each player. Much simpler to use.

Credit to Alessandro Bruni for the initial version of this patch adding
the new properties, and to Sahil Sareen for spotting a bug in that
version.
2018-07-27 17:52:47 -05:00
Michael Catanzaro
59111fcf8a clock: Fix game ending too soon when using Fischer/Bronstein clocks
https://bugzilla.gnome.org/show_bug.cgi?id=779937
2017-03-12 11:00:17 -05:00
Sahil Sareen
c81114efae Update copyrights 2016-03-18 22:45:08 +05:30
Sahil Sareen
d78fa64289 Bump up the license version on source files 2016-02-16 02:27:59 +05:30
Sahil Sareen
e9d862cda3 Fix crash on invalid clock type in pgn
Use a simple clock for invalid clock types in pgn.
2015-03-24 20:40:56 +05:30
Sahil Sareen
fe69cc5a02 Code Cleanup 2015-02-19 20:49:36 +05:30
Sahil Sareen
d00db10c10 Add support for Fischer and Bronstein clocks
* Preferences dialog: Added option for clock type
* Clock Library: Support for these clocks
* Gnome-Chess: Handle fischer/bronstein clocks

https://bugzilla.gnome.org/show_bug.cgi?id=473395
2015-02-16 09:45:50 +05:30
Sahil Sareen
c79fab81af Improving the precision of chess-clock
* Minor change to chess-clock library.
2015-02-11 14:31:47 +05:30
Michael Catanzaro
5aa4c980e3 Use Source.CONTINUE and Source.REMOVE 2014-12-30 21:37:03 -06:00
Michael Catanzaro
5fae150e48 Fix whitespace errors in previous commit 2014-12-16 19:07:00 -06:00
Sahil Sareen
3e6ccc1f4d Fix the pause functionality on timer
Fixes issues:
Bug 740988 - Timer is dead in a scenario
Bug 741119 - Pause seems to be broken
2014-12-16 18:47:46 -06:00
Michael Catanzaro
072e12f299 Fix game ending with 1s left on timer
https://bugzilla.gnome.org/show_bug.cgi?id=721722
2014-09-15 18:13:32 -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-clock.vala (Browse further)