Commit graph

893 commits

Author SHA1 Message Date
Michael Catanzaro
6d95ad3b3a Handle pause correctly before the game has started
Since the clock doesn't start until after White's first move, it
shouldn't be possible to pause/unpause the game during this time,
either.  This means the pause button must be insensitive, and we don't
want to see any warnings if we unfocus the window prior to making the
first move.
2013-08-03 14:28:34 -05:00
Michael Catanzaro
f751835018 Remove use of deprecated Gtk.Stock
Stock icons have also been deprecated by Gtk+, but aren't yet marked so
by Vala.  Let's leave these be for now, as I'm not sure how to handle
icon sensitivity.
2013-08-03 14:24:36 -05:00
Michael Catanzaro
c79c433dd6 Expand the comment on insufficient material 2013-08-03 14:24:36 -05:00
Michael Catanzaro
1234b80e46 configure.ac: disable C warnings
We really don't care about warnings from the C compiler, only about
those from the Vala compiler.
2013-08-03 14:24:36 -05:00
Michael Catanzaro
fd92c7044e Track pause state only in ChessGame
GnomeChess and ChessGame don't need to keep track of this separately.
2013-08-03 10:52:37 -05:00
Michael Catanzaro
91810128c6 ChessClock: verify clock state before (un)pause
If the clock is active, don't allow unpause.  If it's not, don't allow
unpause.  Checking if the timer exists is not sufficient here.
2013-08-03 10:04:04 -05:00
Michael Catanzaro
313daeeca3 ChessClock pause/unpause were reversed
This went unnoticed because they were used reversed, due to the
confusing parameter name in GnomeChess.set_paused_state.

The previous commit was more prescient than I'd hoped....
2013-08-03 09:24:40 -05:00
Chao-Hsiung Liao
96f806fb29 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2013-08-03 21:08:13 +08:00
Michael Catanzaro
22db4e6d35 trivial: add copyright notice to chess-clock.vala
Having just refactored this file, I don't want Robert to take all the
blame for what I've done :)
2013-08-02 22:37:57 -05:00
Michael Catanzaro
7bf1ec2156 fixup: Glaurung's min search depth is 2
This isn't really a fix, as every engine that limits depth to 2
(including Glaurung) will just search to 2 if told to use depth 1.  But
it's nice to keep the config file consistent with reality.
2013-08-02 22:34:51 -05:00
Michael Catanzaro
7d73b9cc0a Stockfish and Glaurung now use UCI go arguments
This should make them quite a bit easier to beat.
2013-08-02 22:31:12 -05:00
Michael Catanzaro
2b7722b788 Support passing arguments to UCI go command
You can now specify arguments to UCI "go" in engines.conf.  An example
command would be "go depth 1" or "go nodes 20" (to expand only 20 nodes
per level), or in combination "go depth 1 nodes 20". See the UCI spec
for a full list of valid commands.
2013-08-02 22:31:12 -05:00
Michael Catanzaro
7fd9c75c68 Miscellaneous improvements to AIProfile
* Instead of public fields, use properties with private setters.
* Change associated free functions into static class functions
* Warn on error reading KeyFile
2013-08-02 22:31:11 -05:00
Michael Catanzaro
09bd6938b2 engines.conf: use simpler format for UCI options 2013-08-02 22:25:16 -05:00
Michael Catanzaro
1d681d5c95 Pause button should be insensitive after game ends 2013-08-02 22:25:16 -05:00
Michael Catanzaro
c22978ab3e Don't (un)pause game after it's complete
Using the app menu could restart the timer after the game's over... not
good.
2013-08-02 22:25:16 -05:00
Michael Catanzaro
d429e01e33 Move HoiChess to the top of engines.conf
This makes it the default engine, if installed
2013-08-02 22:25:16 -05:00
Gabor Kelemen
4ca31d1e73 Updated Hungarian translation 2013-08-02 18:35:47 +02:00
Michael Catanzaro
8ee7af6608 Make ChessClock class harder to misuse
This class has never really been safe.  Pay off some technical debt.

https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Michael Catanzaro
b30e47a81a Don't change UI when focus lost
Just stop counting down

https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Michael Catanzaro
882e93dcd9 Pause button should be insensitive in untimed games
https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Michael Catanzaro
46c62fa1f7 Flip pause/fullscreen buttons, remove pause label
https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Michael Catanzaro
c6154e8f4d pause_button should always be a Gtk.ToolButton
https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Plamena Manolova
f6eb2afa07 game: Add pause game button
Adds a pause game button as well as the functionality
to pause/start game when the game window loses/gains focus.

https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Fran Diéguez
a9d51383a5 Updated Galician translations 2013-08-02 13:19:50 +02:00
Fran Diéguez
ef112d6bc6 Updated Galician translations 2013-08-02 11:56:18 +02:00
Yaron Shahrabani
a25713af6d Updated Hebrew translation. 2013-07-31 16:06:35 +03:00
Michael Catanzaro
bb02eb16e8 Fine-tune the vala dependency 2013-07-30 21:29:20 -05:00
Milo Casagrande
d808e35296 [l10n] Updated Italian translation. 2013-07-30 22:22:42 +02:00
Michael Catanzaro
e35748d96d Prepare 3.9.5 2013-07-29 22:51:52 -05:00
Marek Černocký
a74ebaabdf Updated Czech translation 2013-07-28 13:21:12 +02:00
Michael Catanzaro
22ff8b13bc Fix broken Undo in most CECP engines
https://bugzilla.gnome.org/show_bug.cgi?id=704993
2013-07-27 21:18:23 -05:00
Michael Catanzaro
af0452be1f Always send random command to CECP engines
https://bugzilla.gnome.org/show_bug.cgi?id=703950
2013-07-27 21:18:23 -05:00
Michael Catanzaro
97f6b181de Make HoiChess a bit harder.
I'm really excited about how easy HoiChess is to beat.  It must not be
using any extensions/quiescence at all.  However this does make it
extremely unrealistic to play against at depth 1.
2013-07-27 21:18:23 -05:00
Michael Catanzaro
c8fb75f725 Fix Phalanx difficulty levels
Oops :)
2013-07-27 21:18:23 -05:00
Michael Catanzaro
37a7b7ef83 Fix name of BBChess binary 2013-07-27 21:18:23 -05:00
Michael Catanzaro
f0cc4fbfea Use sd to control difficulty of most CECP engines
I was disappointed when I discovered that most engines did not respect
the depth command.  But it turns out that this is a GNUChess (and
Phalanx)-specific extension.  Everyone else uses sd for the same
purpose. This means that we get to provide meaningful difficulties for
these engines after all. Yay!
2013-07-27 21:18:23 -05:00
Michael Catanzaro
1321ca87a4 Support Octochess 2013-07-27 21:18:23 -05:00
Michael Catanzaro
dcbbd976d4 Review and update the suggested game durations
Blitz Chess is typically five minutes per player (10 minutes total). If
you want to go faster than that, you can always set a custom duration.

Most players will probably be most comfortable with a longer limit such
as 90 minutes/player.
2013-07-27 21:18:23 -05:00
Aurimas Černius
d05c9aa1cd Updated Lithuanian translation 2013-07-27 22:36:06 +03:00
Michael Catanzaro
2a12db19e0 test-driver needs to be distcleaned 2013-07-27 11:49:30 -05:00
Michael Catanzaro
33007005e0 Remove face-to-face board orientation
This isn't a board orientation, it's a piece orientation.  It actually
silently forces the "White" board orientation.

It could be implemented separately as a checkbox, but I don't think we
want to keep this "feature."

Also, this option is broken in 3D mode.  (Though as a checkbox, it could
be insensitive in 3D mode.)
2013-07-27 11:46:40 -05:00
Michael Catanzaro
c85d9e1d79 Always forget games after they are completed 2013-07-27 09:09:49 -05:00
Chao-Hsiung Liao
772f7b45d6 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2013-07-25 19:58:14 +08:00
Marek Černocký
c2a54d14fa Updated Czech translation 2013-07-24 22:28:07 +02:00
Daniel Mustieles
acd96a96b3 Updated Spanish translation 2013-07-24 10:28:42 +02:00
Chris Cummins
e14e76abda Don't include path in window title
This transforms a window title of:

  2013-05-24.png (/home/user/.local/share/glchess/history/2013/05/24) - Chess

into:

  Chess - 2013-05-24.png

https://bugzilla.gnome.org/show_bug.cgi?id=704755
2013-07-23 22:37:42 -05:00
Fran Diéguez
1ae256de75 Updated Galician translations 2013-07-23 00:04:48 +02:00
Michael Catanzaro
e0889e86c2 3D: improve alignment of file letters
https://bugzilla.gnome.org/show_bug.cgi?id=704605
2013-07-22 15:54:33 -05:00
Dimitris Spingos
5afa8e34d9 Updated Greek translation 2013-07-22 19:06:12 +03:00