case VariantJanus: /* should work */
case VariantSuper: /* experimental */
case VariantGreat: /* experimental, requires legality testing to be off */
+ case VariantSChess: /* S-Chess, should work */
break;
}
}
VariantGreat,
VariantTwilight,
VariantMakruk,
+ VariantSChess,
VariantUnknown /* Catchall for other unknown variants */
} VariantClass;
"great",\
"twilight",\
"makruk",\
+ "seirawan",\
"unknown" \
}
#define OPT_VariantGreat 1527\r
#define OPT_VariantTwilight 1528\r
#define OPT_VariantMakruk 1529\r
+#define OPT_VariantSChess 1530\r
#define IDC_Files 1550\r
#define IDC_Ranks 1551\r
#define IDC_Holdings 1552\r
OPT_VariantBughouse, OPT_VariantTwilight, OPT_VariantShogi, OPT_VariantSuper,\r
OPT_VariantKnightmate, OPT_VariantBerolina, OPT_VariantCylinder, OPT_VariantFairy,\r
OPT_VariantMakruk, OPT_VariantGothic, OPT_VariantCapablanca, OPT_VariantJanus,\r
- OPT_VariantCRC, OPT_VariantFalcon, OPT_VariantCourier, OPT_VariantGreat,\r
+ OPT_VariantCRC, OPT_VariantFalcon, OPT_VariantCourier, OPT_VariantGreat, OPT_VariantSChess,\r
OPT_VariantShatranj, OPT_VariantXiangqi, GPB_Variant, GPB_Board, IDC_Height,\r
IDC_Width, IDC_Hand, IDC_Pieces, IDC_Def }, \r
{ DLG_Fonts, IDOK, IDCANCEL, OPT_ChooseClockFont, OPT_ChooseMessageFont,\r
50,10\r
CONTROL "&Shatranj",OPT_VariantShatranj,"Button",BS_AUTORADIOBUTTON,134,\r
84,50,10\r
- CONTROL "&xiangqi",OPT_VariantXiangqi,"Button",BS_AUTORADIOBUTTON,134,94,50,\r
+ CONTROL "Seira&wan",OPT_VariantSChess,"Button",BS_AUTORADIOBUTTON,134,94,50,\r
+ 10\r
+ CONTROL "&xiangqi",OPT_VariantXiangqi,"Button",BS_AUTORADIOBUTTON,134,104,50,\r
10\r
GROUPBOX "Variant",GPB_Variant,4,4,185,115\r
LTEXT "Board size:",GPB_Board,10,135,40,8\r
(IsDlgButtonChecked(hDlg, OPT_VariantGiveaway) ? VariantGiveaway :\r
(IsDlgButtonChecked(hDlg, OPT_VariantTwilight) ? VariantTwilight :\r
(IsDlgButtonChecked(hDlg, OPT_VariantMakruk) ? VariantMakruk :\r
- VariantNormal )))))))))))))))))))))))))))));\r
+ (IsDlgButtonChecked(hDlg, OPT_VariantSChess) ? VariantSChess :\r
+ VariantNormal ))))))))))))))))))))))))))))));\r
}\r
\r
LRESULT CALLBACK\r
case VariantMakruk:\r
CheckDlgButton(hDlg, OPT_VariantMakruk, TRUE);\r
break;\r
+ case VariantSChess:\r
+ CheckDlgButton(hDlg, OPT_VariantSChess, TRUE);\r
+ break;\r
default: ;\r
}\r
\r
{N_("give-away"), "#FFFFBF", 0, VariantGiveaway},
{N_("losers"), "#FFFFBF", 0, VariantLosers},
{N_("fairy"), "#BFBFBF", 0, VariantFairy},
+ {N_("Seirawan"), "#FFBFBF", 0, VariantSChess},
{N_("Superchess"), "#FFBFBF", 0, VariantSuper},
{N_("crazyhouse"), "#FFBFBF", 0, VariantCrazyhouse},
{N_("bughouse"), "#FFBFBF", 0, VariantBughouse},