Commit graph

816 commits

Author SHA1 Message Date
Marek Černocký
e09500d3d6 Updated Czech translation 2013-07-07 00:10:11 +02:00
Michael Catanzaro
87425a5a02 Remove "Show Toolbar" option
Toolbar is now mandatory. You won't be able to do much without it.
2013-07-06 14:54:38 -05:00
Michael Catanzaro
8381702821 Clean/ignore more test output 2013-07-06 14:54:06 -05:00
Michael Catanzaro
039bfe06e5 Remove the menubar, add an app menu, and expand the toolbar
Not necessarily the final design. All the other games have New Game in
the app menu. But I hesitate to put it there without Open and Save.
These are all very much window-specific options anyway.

Maybe it's OK to have window-specific options there, if the app is
single instance. I'm not sure anyone really knows.

And maybe we want Chess to allow multiple instances again. So not
necessarily the final design.
2013-07-06 14:54:06 -05:00
Michael Catanzaro
91f1e3c196 preferences.ui: target gtk+ 3 2013-07-04 13:57:31 -05:00
Kjartan Maraas
3644d33c45 Updated Norwegian bokmål translation 2013-07-04 11:45:37 +02:00
Marek Černocký
ac30bbb48b Updated Czech translation 2013-06-30 07:37:19 +02:00
Enrico Nicoletto
aa78a01128 Updated Brazilian Portuguese translation 2013-06-30 01:10:33 -03:00
Michael Catanzaro
064973fea7 Add castling text for human move descriptions
E.g. history will now show "White king castles kingside" instead of
"white king moves from e1 to g1"
2013-06-29 10:35:16 -05:00
Michael Catanzaro
b78ec087b3 Remove the label in the promotion type dialog
It actually doesn't need to exist at all

https://bugzilla.gnome.org/show_bug.cgi?id=703251
2013-06-29 10:16:43 -05:00
Michael Catanzaro
a12933c764 Remove paragraph-long tooltip about pawn promotion
This was not a good idea.
2013-06-29 10:04:12 -05:00
Michael Catanzaro
b264ab1472 Fix icon displayed by gnome-shell when running from jhbuild 2013-06-27 13:13:22 -05:00
Marek Černocký
cd82dba329 Updated Czech translation 2013-06-26 19:08:54 +02:00
Michael Catanzaro
04d45a509d configure.ac: just fix an embarassing typo 2013-06-25 22:00:28 -05:00
Michael Catanzaro
84bf05541b configure.ac: use AC_CONFIG_SRCDIR
This is just a sanity check
2013-06-25 22:00:28 -05:00
Michael Catanzaro
e70154a5c4 Add an AC_PREQ line to configure.ac 2013-06-25 22:00:28 -05:00
Michael Catanzaro
4cdec2f29f Remove REQUIRED_AUTOMAKE_VERSION from autogen.sh
The check in AM_INIT_AUTOMAKE is sufficient. This shouldn't have to be
changed in two places.

It was outdated anyway; automake 1.11 really is important, since it has
all the vala macros.
2013-06-25 22:00:28 -05:00
Michael Catanzaro
90099706c8 Run autoupdate on configure.ac 2013-06-25 22:00:28 -05:00
Daniel Mustieles
a7ce48850d Updated Spanish translation 2013-06-25 14:43:34 +02:00
Michael Catanzaro
d24f5f1a9d Open save dialog rather than autosaving on new game prompt
Saying that you want to save the game, then not getting any save prompt,
is confusing and unexpected. The user should never have any choice in
autosaving anyway; by definition that's something that should happen
without his input.

https://bugzilla.gnome.org/show_bug.cgi?id=702157
2013-06-24 17:44:06 -05:00
Michael Catanzaro
50243126b5 Game needs saving when the result is added
E.g. if you resign, the game wants to be saved to reflect that
resignation

https://bugzilla.gnome.org/show_bug.cgi?id=702157
2013-06-24 17:44:06 -05:00
Michael Catanzaro
b2bec84012 Use better text when prompting to save a completed game
Otherwise it seems like you can keep playing the game

https://bugzilla.gnome.org/show_bug.cgi?id=702157
2013-06-24 17:44:06 -05:00
Michael Catanzaro
cad942dc00 Game does not need saving immediately after it is saved
Moreover, we should wait until after the save is successful before
making this determination.

https://bugzilla.gnome.org/show_bug.cgi?id=702157
2013-06-23 10:15:24 -05:00
Michael Catanzaro
25490b177c Add a 256x256 icon
https://bugzilla.gnome.org/show_bug.cgi?id=702139
2013-06-21 08:03:26 -05:00
Kjartan Maraas
363b3fc71d Updated Norwegian bokmål translation 2013-06-20 10:42:40 +02:00
Daniel Mustieles
1190d614ef Updated Spanish translation 2013-06-12 13:35:45 +02:00
Marek Černocký
19da795eb4 Updated Czech translation 2013-06-10 21:42:42 +02:00
Fran Diéguez
7b5b271b12 Updated Galician translations 2013-06-10 10:29:03 +02:00
Michael Catanzaro
48996cd361 With no engines installed, human should be able to control both players
Currently you hit a problem when you load a game that had originally
been against an engine, but have no engine installed. Fallback to human
control in this case.

Regression introduced in 894a74a885
2013-06-08 21:04:31 -05:00
Michael Catanzaro
c8199a04e5 Fixup: don't start clock in untimed games 2013-06-08 21:04:31 -05:00
Piotr Drąg
b149095a3d Updated Polish translation 2013-06-09 03:40:29 +02:00
Michael Catanzaro
ec1c258747 Set a default filename for the save game dialog
This means people will save with the .pgn extension by default, yay.
2013-06-08 19:34:27 -05:00
Michael Catanzaro
199846d77b Start the clock immediately when loading a game
We only don't want to start the clock at the start of the game if it's a
brand new game, where White hasn't moved yet.
2013-06-08 17:29:37 -05: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
5dae742110 fixup: forgot to stage part of the previous commit
Whoops... without this, we use the doubled game duration again
2013-06-08 17:01:27 -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
Michael Catanzaro
cb03e2ff0e Fix insanely small load game dialog bug
https://bugzilla.gnome.org/show_bug.cgi?id=701636
2013-06-08 11:48:18 -05:00
Michael Catanzaro
7862319a7e Stop the chess clock when ChessGame is freed
Otherwise, the timer event remains in the main loop, and causes us to
crash when it expires. This would happen if the game is not stopped
before starting a new one, e.g. when the player uses "New Game" or "Load
Game" before the previous game has played to completion.

https://bugzilla.gnome.org/show_bug.cgi?id=701705
2013-06-06 17:22:00 -05:00
Michael Catanzaro
8584abbec2 tests: print unexpected results as strings
Vala enums have a to_string method, so if a test produces an unexpected
game result, we can print the symbolic constant instead of just saying
something helpful like "game has result 1 not 3"
2013-06-05 20:47:19 -05:00
Chris Cummins
32d04f0be4 Always undo from most the most recent move
This makes the in-game undo action always undo the most recent
move. This prevents a Segmentation Fault when the user selects "Show
previous move" and then attempts to undo move.

v2: don't loop on assignment (review from Michael Catanzaro).

https://bugzilla.gnome.org/show_bug.cgi?id=701601
2013-06-05 08:36:57 -05:00
Jiro Matsuzawa
e63073b754 l10n: Update Japanese translation 2013-06-01 00:22:08 +09:00
Michael Catanzaro
fb2725b526 King and bishop can checkmate king and bishop of opposite color
Update insufficient material algorithm and tests accordingly
2013-05-28 20:26:09 -05:00
Michael Catanzaro
21496597e3 Revert "King and bishop can checkmate king and bishop of opposite color"
This reverts commit af8f4d798d.

Needs updated tests before it can be released
2013-05-27 13:44:59 -05:00
Michael Catanzaro
bdc88e70ba Prepare 3.9.2
Also, reformat 3.9.1 NEWS
2013-05-27 13:21:25 -05:00
Michael Catanzaro
9fcb7455a8 Claim draw is only allowed on your own turn 2013-05-26 13:31:34 -05:00
Michael Catanzaro
af8f4d798d King and bishop can checkmate king and bishop of opposite color
https://en.wikipedia.org/wiki/Checkmate#Rare_checkmates
2013-05-26 13:25:07 -05:00
Michael Catanzaro
f770ab7e90 Fix massive CPU usage after starting a new game
After ending a game against a chess engine, CPU usage would skyrocket
since the IOWatch on the engine's stdout wasn't removed from the main
loop. Remedy this.

https://bugzilla.gnome.org/show_bug.cgi?id=578130#c7
2013-05-25 13:41:11 -05:00
Michael Catanzaro
343ab9e424 Call close_pid on the engine process when stopped
This does nothing on Unix, but the glib documentation says it should be
called regardless.
2013-05-24 13:27:03 -05:00
Michael Catanzaro
e9c2d4bfa9 Sensibly set sensitivity of claim draw menu option 2013-05-21 21:27:47 -05:00
Michael Catanzaro
95a7407775 Undo and resign: mark insensitive when game over 2013-05-21 21:25:10 -05:00