Skip to content
Commits on Source (17)
43.1 - January 5, 2023
======================
- Fix build with latest valac (!44, Rico Tzschichholz)
- Fix keyboard shortcuts dialog (#69)
- Updated translations
43.0 - September 15, 2022
=========================
......
......@@ -35,7 +35,7 @@
<section>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">app.show-help-overlay</attribute>
<attribute name="action">win.show-help-overlay</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Help</attribute>
......
......@@ -46,6 +46,7 @@
<display_length compare="ge">360</display_length>
</requires>
<releases>
<release version="43.1" date="2023-01-05"/>
<release version="43.0" date="2022-09-15"/>
<release version="43~rc" date="2022-09-01"/>
<release version="42.1" date="2022-08-09"/>
......
......@@ -9,22 +9,22 @@
msgid ""
msgstr ""
"Project-Id-Version: gnome-chess master\n"
"POT-Creation-Date: 2021-11-29 16:30+0000\n"
"PO-Revision-Date: 2022-03-22 12:05+0100\n"
"Last-Translator: Tim Sabsch <tim@sabsch.com>\n"
"POT-Creation-Date: 2022-07-25 14:22+0000\n"
"PO-Revision-Date: 2022-10-08 00:10+0200\n"
"Last-Translator: Christian Kirbach <christian.kirbach@gmail.com>\n"
"Language-Team: German <gnome-de@gnome.org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Generator: Poedit 3.1.1\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
msgstr ""
"Christian Kirbach <christian.kirbach@gmail.com>, 2019\n"
"Christian Kirbach <christian.kirbach@gmail.com>, 2019-2022\n"
"Mario Blättermann <mario.blaettermann@gmail.com>, 2019-2021.\n"
"Tim Sabsch <tim@sabsch.com>, 2021-2022"
......@@ -496,11 +496,6 @@ msgstr ""
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
#: C/play.page:33
#, fuzzy
#| msgctxt "_"
#| msgid ""
#| "external ref='./figures/gnome-chess-3-32.png' "
#| "md5='696d50257ae0cdbe240365972bf054a6'"
msgctxt "_"
msgid ""
"external ref='./figures/gnome-chess-40.png' "
......
# French translation for gnome-chess.
# Copyright (C) 2019 gnome-chess's COPYRIGHT HOLDER
# This file is distributed under the same license as the gnome-chess package.
# Charles Monzat <charles.monzat@free.fr>, 2019-2021.
# Charles Monzat <charles.monzat@free.fr>, 2019-2022.
#
msgid ""
msgstr ""
"Project-Id-Version: gnome-chess gnome-3-34\n"
"POT-Creation-Date: 2021-05-09 06:18+0000\n"
"PO-Revision-Date: 2021-05-10 15:21+0200\n"
"POT-Creation-Date: 2021-11-29 16:29+0000\n"
"PO-Revision-Date: 2022-04-10 22:39+0200\n"
"Last-Translator: Charles Monzat <charles.monzat@free.fr>\n"
"Language-Team: GNOME French Team <gnomefr@traduc.org>\n"
"Language: fr\n"
......@@ -39,8 +39,7 @@ msgstr "2011"
#: C/bug-filing.page:14 C/develop.page:15 C/documentation.page:13
#: C/index.page:16 C/save-resume.page:30 C/translate.page:20
msgid "Creative Commons Share Alike 3.0"
msgstr ""
"Creative Commons Paternité-Partage des Conditions Initiales à l’Identique 3.0"
msgstr "Creative Commons Paternité - Partage dans les Mêmes Conditions 3.0"
#. (itstool) path: page/title
#: C/bug-filing.page:18
......@@ -373,8 +372,8 @@ msgid ""
"This work is distributed under a CreativeCommons Attribution-Share Alike 3.0 "
"Unported license."
msgstr ""
"Cette œuvre est distribuée sous une licence Paternité-Partage des Conditions "
"Initiales à l’Identique 3.0 non transposé (Creative Commons)."
"Cette œuvre est distribuée sous une licence Attribution - Partage dans les "
"Mêmes Conditions 3.0 non transposé (Creative Commons)."
#. (itstool) path: page/p
#: C/license.page:20
......@@ -447,7 +446,7 @@ msgid ""
"sa/3.0/\">Commons Deed</link>."
msgstr ""
"Pour prendre connaissance du texte complet de la licence, consultez le <link "
"href=\"https://creativecommons.org/licenses/by-sa/3.0/legalcode\">site Web "
"href=\"https://creativecommons.org/licenses/by-sa/3.0/legalcode\">site web "
"de CreativeCommons</link>, ou lisez in extenso <link href=\"https://"
"creativecommons.org/licenses/by-sa/3.0/\">le contrat Commons</link>."
......
......@@ -12,7 +12,7 @@
namespace BitBoard
{
/* Bitboard for each location */
public const int64 set_location_masks[] =
public const uint64 set_location_masks[] =
{
0x0000000000000001, 0x0000000000000002, 0x0000000000000004, 0x0000000000000008,
0x0000000000000010, 0x0000000000000020, 0x0000000000000040, 0x0000000000000080,
......@@ -33,7 +33,7 @@ namespace BitBoard
};
/* Mask to clear the given location */
public const int64 clear_location_masks[] =
public const uint64 clear_location_masks[] =
{
0xfffffffffffffffe, 0xfffffffffffffffd, 0xfffffffffffffffb, 0xfffffffffffffff7,
0xffffffffffffffef, 0xffffffffffffffdf, 0xffffffffffffffbf, 0xffffffffffffff7f,
......@@ -54,7 +54,7 @@ namespace BitBoard
};
/* Locations moved over for each move */
public const int64 over_masks[] =
public const uint64 over_masks[] =
{
0x0000000000000000, 0x0000000000000000, 0x0000000000000002, 0x0000000000000006,
0x000000000000000e, 0x000000000000001e, 0x000000000000003e, 0x000000000000007e,
......@@ -1083,7 +1083,7 @@ namespace BitBoard
};
/* Allowed moves for each piece */
public const int64 move_masks[] =
public const uint64 move_masks[] =
{
/* White Pawn */
0x0000000000000300, 0x0000000000000700, 0x0000000000000e00, 0x0000000000001c00,
......@@ -1291,7 +1291,7 @@ namespace BitBoard
0x6c38000000000000, 0x5070000000000000, 0xa0e0000000000000, 0x40c0000000000000
};
public string to_string (int64 mask)
public string to_string (uint64 mask)
{
var string = "+---+---+---+---+---+---+---+---+\n";
int rowCount = 0;
......
......@@ -36,7 +36,7 @@ public class ChessState : Object
public ChessMove? last_move = null;
/* Bitmap of all the pieces */
private int64 piece_masks[2];
private uint64 piece_masks[2];
private ChessState.empty ()
{
......@@ -78,7 +78,7 @@ public class ChessState : Object
int index = get_index (rank, file);
ChessPiece piece = new ChessPiece (players[color], type);
board[index] = piece;
int64 mask = BitBoard.set_location_masks[index];
uint64 mask = BitBoard.set_location_masks[index];
piece_masks[color] |= mask;
file++;
}
......@@ -296,13 +296,13 @@ public class ChessState : Object
return false;
/* Check valid move */
int64 end_mask = BitBoard.set_location_masks[end];
int64 move_mask = BitBoard.move_masks[color * 64*6 + piece.type * 64 + start];
uint64 end_mask = BitBoard.set_location_masks[end];
uint64 move_mask = BitBoard.move_masks[color * 64*6 + piece.type * 64 + start];
if ((end_mask & move_mask) == 0)
return false;
/* Check no pieces in the way */
int64 over_mask = BitBoard.over_masks[start * 64 + end];
uint64 over_mask = BitBoard.over_masks[start * 64 + end];
if ((over_mask & (piece_masks[Color.WHITE] | piece_masks[Color.BLACK])) != 0)
return false;
......@@ -374,7 +374,7 @@ public class ChessState : Object
return false;
/* Check rook can move */
int64 rook_over_mask = BitBoard.over_masks[rook_start * 64 + rook_end];
uint64 rook_over_mask = BitBoard.over_masks[rook_start * 64 + rook_end];
if ((rook_over_mask & (piece_masks[Color.WHITE] | piece_masks[Color.BLACK])) != 0)
return false;
......
project('gnome-chess', [ 'vala', 'c' ],
version: '43.0',
version: '43.1',
license: 'GPL3+',
meson_version: '>= 0.59',
)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -16,7 +16,7 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-chess\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-chess/issues\n"
"POT-Creation-Date: 2022-08-20 21:12+0000\n"
"POT-Creation-Date: 2022-08-22 02:22+0000\n"
"PO-Revision-Date: 2022-08-22 05:19+0300\n"
"Last-Translator: Emin Tufan Çetin <etcetin@gmail.com>\n"
"Language-Team: Türkçe <gnome-turk@gnome.org>\n"
......