Add Betza notation for built-in pieces
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 1 Jun 2021 19:51:41 +0000 (21:51 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 1 Jun 2021 19:54:30 +0000 (21:54 +0200)
src/piece.cpp
src/variants.ini

index 6d91ecf..a5b0703 100644 (file)
@@ -173,7 +173,7 @@ namespace {
   }
   // Special multi-leg betza description for Janggi elephant
   PieceInfo* janggi_elephant_piece() {
-      PieceInfo* p = from_betza("nZ", "");
+      PieceInfo* p = from_betza("nZ", "janggiElephant");
       p->betza = "mafsmafW"; // for compatiblity with XBoard/Winboard
       return p;
   }
index f4dac45..76acfa2 100644 (file)
 # For that, specify the letter used for each piece type, e.g.:
 # pawn = p
 #
-# See the list below for all available piece types:
-# pawn
-# knight
-# bishop
-# rook
-# queen
-# fers
-# alfil
-# fersAlfil (=fers+alfil)
-# silver
-# aiwok (=rook+knight+fers)
-# bers (=rook+fers)
-# archbishop (=bishop+knight)
-# chancellor (=rook+knight)
-# amazon (=queen+knight)
-# knibis
-# biskni
-# kniroo
-# rookni
-# shogiPawn
-# lance
-# shogiKnight
-# gold
-# dragonHorse
-# clobber
-# breakthrough
-# immobile (piece without moves)
-# cannon
-# janggiCannon
-# soldier
-# horse
-# elephant
-# janggiElephant
-# banner (=rook+cannon+horse)
-# wazir
-# commoner (non-royal king)
-# centaur (=knight+commoner)
-# king
+# See the list below for all available predefined piece types (and their Betza notation):
+# pawn (fmWfceF)
+# knight (N)
+# bishop (B)
+# rook (R)
+# queen (Q)
+# fers (F)
+# alfil (A)
+# fersAlfil (FA)
+# silver (FfW)
+# aiwok (RNF)
+# bers (RF)
+# archbishop (BN)
+# chancellor (RN)
+# amazon (QN)
+# knibis (mNcB)
+# biskni (mBcN)
+# kniroo (mNcR)
+# rookni (mRcN)
+# shogiPawn (fW)
+# lance (fR)
+# shogiKnight (fN)
+# gold (WfF)
+# dragonHorse (BW)
+# clobber (cW)
+# breakthrough (fWfFcF)
+# immobile ()
+# cannon (mRcpR)
+# janggiCannon (pR)
+# soldier (fsW)
+# horse (nN)
+# elephant (nA)
+# janggiElephant (mafsmafW)
+# banner (RcpRnN)
+# wazir (W)
+# commoner (K)
+# centaur (KN)
+# king (K)
 
 ### Custom pieces
 # Custom pieces can be defined by using one of the available slots: