From: H.G.Muller Date: Wed, 10 Sep 2014 18:49:38 +0000 (+0200) Subject: Reorder variants, to comply with Polyglot book specs X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=62e5284278f8b168b7eabed3fbf28d39455d7d8c Reorder variants, to comply with Polyglot book specs XBoard's variant number is used as a key to access Polyglot opening books, and thus cannot be changed without consequences. (As it was when we introduced ASEAN and Chu Shogi.) We also renamed Chu Chess to Elven Chess (under which name it is now described on chessvariants.org). --- diff --git a/common.h b/common.h index f2cb9e9..e6c3b20 100644 --- a/common.h +++ b/common.h @@ -376,7 +376,6 @@ typedef enum { Variant36, /* Temporary name for possible future ICC wild 36 */ VariantShogi, /* [HGM] added variants */ VariantChu, - VariantXiangqi, VariantCourier, VariantGothic, VariantCapablanca, @@ -391,10 +390,11 @@ typedef enum { VariantGreat, VariantTwilight, VariantMakruk, - VariantASEAN, VariantSChess, VariantGrand, VariantSpartan, + VariantXiangqi, + VariantASEAN, VariantLion, VariantChuChess, VariantUnknown /* Catchall for other unknown variants */ @@ -426,7 +426,6 @@ typedef enum { "wild36", \ "shogi", \ "chu", \ - "xiangqi", \ "courier", \ "gothic", \ "capablanca", \ @@ -441,12 +440,13 @@ typedef enum { "great",\ "twilight",\ "makruk",\ - "asean",\ "seirawan",\ "grand",\ "spartan",\ + "xiangqi", \ + "asean",\ "lion",\ - "chuchess",\ + "elven",\ "unknown" \ } diff --git a/dialogs.c b/dialogs.c index 8da6557..77e8911 100644 --- a/dialogs.c +++ b/dialogs.c @@ -490,7 +490,7 @@ static Option variantDescriptors[] = { { VariantXiangqi, SAME_ROW,135, NULL, (void*) &Pick, "#BFFFFF", NULL, Button, N_("xiangqi (9x10)")}, { VariantLion, 0, 135, NULL, (void*) &Pick, "#BFBFBF", NULL, Button, N_("mighty lion")}, { VariantCourier, SAME_ROW,135, NULL, (void*) &Pick, "#BFFFBF", NULL, Button, N_("courier (12x8)")}, -{ VariantChuChess, 0, 135, NULL, (void*) &Pick, "#BFBFBF", NULL, Button, N_("chu chess (10x10)")}, +{ VariantChuChess, 0, 135, NULL, (void*) &Pick, "#BFBFBF", NULL, Button, N_("elven chess (10x10)")}, { VariantChu, SAME_ROW, 135, NULL, (void*) &Pick, "#BFFFBF", NULL, Button, N_("chu shogi (12x12)")}, //{ -1, 0, 135, NULL, (void*) &Pick, "#FFFFFF", NULL, Button, N_(" ")}, // dummy, to have good alignment // optional buttons for engine-defined variants diff --git a/winboard/woptions.c b/winboard/woptions.c index 77e6eea..9c1942b 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -850,7 +850,6 @@ int radioButton[] = { -1, OPT_VariantShogi, -1, // Chu - OPT_VariantXiangqi, OPT_VariantCourier, OPT_VariantGothic, OPT_VariantCapablanca, @@ -865,10 +864,11 @@ int radioButton[] = { OPT_VariantGreat, -1, // Twilight, OPT_VariantMakruk, - OPT_VariantASEAN, OPT_VariantSChess, OPT_VariantGrand, OPT_VariantSpartan, // Spartan + OPT_VariantXiangqi, + OPT_VariantASEAN, OPT_VariantLion, -2 // sentinel };