File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1242,6 +1242,13 @@ namespace {
12421242 v->promotedPieceType [SHOGI_KNIGHT ] = GOLD ;
12431243 return v;
12441244 }
1245+ // Check-Shogi
1246+ // Shogi variant with check counting enabled
1247+ Variant* checkshogi_variant () {
1248+ Variant* v = shogi_variant ()->init ();
1249+ v->checkCounting = true ;
1250+ return v;
1251+ }
12451252 // Sho-Shogi
12461253 // 16-th century shogi variant with one additional piece and no drops
12471254 // https://en.wikipedia.org/wiki/Sho_shogi
@@ -1908,6 +1915,7 @@ void VariantMap::init() {
19081915 add (" raazuvaa" , raazuvaa_variant ());
19091916#ifdef LARGEBOARDS
19101917 add (" shogi" , shogi_variant ());
1918+ add (" checkshogi" , checkshogi_variant ());
19111919 add (" shoshogi" , shoshogi_variant ());
19121920 add (" yarishogi" , yarishogi_variant ());
19131921 add (" okisakishogi" , okisakishogi_variant ());
You can’t perform that action at this time.
0 commit comments