Add remark on royal-on-hill winning condition in ini file
[fairymax.git] / data / fmax.ini
index 3824f01..88c76a8 100644 (file)
@@ -108,8 +108,6 @@ Canvasser:
 C:900 1,3 16,3 -1,3 -16,3 13,7 47,7 49,7 19,7 -13,7 -47,7 -49,7 -19,7\r
 Amazon:\r
 A:1150 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
-Crooked Bishop:\r
-B:900 15,1E003 17,1E003 -15,1E003 -17,1E003 15,FFFE0003 -17,FFFE0003 -15,FFFE0003 17,FFFE0003\r
 \r
 HOPPERS\r
 GrassHopper:\r
@@ -143,6 +141,10 @@ Line 4-18:  Description of piece types that can occur in the variant
 This can be followed by some optional info to be sent to GUI when it\r
 selects the variant, e.g. to tell it how some non-standard pieces move.\r
 \r
+The board size can be suffixed with =n where the number n then indicates\r
+the depth of the promotion zone (which normally is just the last rank).\r
+Currently only n=3 is understood.\r
+\r
 There can be upto 15 piece types per variant, numbered 1 to 15.\r
 Numbers 1 and 2 are considered Pawns for white and black, respectively,\r
 and the 2nd and 7th rank of the opening setup will be filled with them.\r
@@ -198,9 +200,9 @@ value assumed for them will be the absolute value of what you defined.
 With a value -1, however, loss of the first piece of that type loses the game.\r
 For royal piece types larger than 7 there is the special rule that it is not\r
 allowed to leave more than one of them under attack ('duple check').\r
-\r
-NOTE: piece value 181 for piece 7 is reserved for Makruk, and enables\r
-promotion on the 6th rank. Do not use it in other variants.\r
+A royal value of -2 is currently used as a kludge to enable an alternative\r
+winning condition, namely when the royal piece reaches (and survives in)\r
+one of the four central squares.\r
 \r
 The individual bits in the move-mode descriptor have the following meaning:\r
 In the last hexadecimal digit:\r
@@ -210,7 +212,7 @@ In the last hexadecimal digit:
     8 hop over non-empty square (normally occupied squares terminate a move)\r
 Bits set in the forelast digits TOGGLE the corresponding bits in the last\r
 digit. For hoppers when they hop over something, for the other pieces after\r
-every step (so for normal pieces, better not set those bits!).\r
+one to four steps (so for normal pieces, better not set those bits!).\r
 \r
 The digit before that indicates some special things; a 1 indicates the \r
 board should be treated as a cylinder, pieces crossing the right edge \r
@@ -239,17 +241,16 @@ Useful bit combinations for the last digit are:
     C   must hop immediately\r
 \r
 For example, if the initial step vector equals 1, and the descriptor\r
-is 11003, the piece is an alternator (as no hop bit is set), and alternates\r
+is 11003, the piece is a bent one (as no hop bit is set), and switches\r
 the mode from 3 to 3 (as the toggle digit is 0), i.e. all steps are moves\r
 that can both capture and non-capture, and only captures terminate the ray.\r
-The step vector is toggled by 11, though, and thus alternates between 1\r
-and 10 (hex) = 16. So the piece zig-zags over the board, right, forward, right,\r
-forward, etc. Had the move attributes been 11032, captures would only\r
-be allowed on the odd steps (after moving right), while the even steps could\r
-only be non-captures (both the 1 and 2 bit are toggled). With 11030 the\r
-odd steps can only be skipped (if empty), and the even steps can both capture\r
-and non-capture, meaning the piece moves like a Bishop that can be blocked\r
-by a piece just next to the diagonal.\r
+The step vector is toggled by 11, though, and thus switches from 1\r
+to 10 (hex) = 16. So the piece turns a 90-degree corner, from right to\r
+forward. Had the move attributes been 11032, captures would only be\r
+allowed before the bend (after moving right), while thereafter it can\r
+only non-capture (both the 1 and 2 bit are toggled). With 11030 the\r
+first step can only be skipped (if empty), and thereafter it can both capture\r
+and non-capture.\r
 \r
 If the first step is a slider, a second step is made (if the square was\r
 empty), but if the mode toggles to leaper, the move stops there (e.g. Horse).\r
@@ -287,16 +288,17 @@ For the truly lazy, a few complete game descriptions can be found below:
 // FIDE Chess (a.k.a. Mad Queen variant)\r
 Game: normal\r
 8x8\r
-6 4 5 7 3 5 4 6\r
-6 4 5 7 3 5 4 6\r
+8 5 6 9 3 6 5 8\r
+8 5 6 9 4 6 5 8\r
 p:74 -16,24 -16,6 -15,5 -17,5 \r
 p:74  16,24 16,6 15,5 17,5\r
 k:-1  1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+k:-1  1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
 n:259 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
 b:296 15,3 17,3 -15,3 -17,3\r
-R:444 1,3 16,3 -1,3 -16,3\r
 Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3\r
-f:481 13,FFFFF207 29,F207 46,F207 47,10207 49,10207 50,11207 35,11207 19,1207 -13,1207 -29,FFFF1207 -46,FFFF1207 -47,FFFF0207 -49,FFFF0207 -50,FFFEF207 -35,FFFEF207 -19,FFFFF207 \r
+R:444 1,3 16,3 -1,3 -16,3\r
+S:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3\r
 \r
 // Chess without castling (intended as shuffle variant)\r
 Game: nocastle\r
@@ -328,18 +330,19 @@ f:180 15,7 17,7 -15,7 -17,7
 \r
 // ASEAN Chess. New form of Makruk\r
 Game: asean\r
-8x8\r
-12 11 8 7 3 8 11 12\r
-12 11 9 7 3 9 11 12\r
+8x8=1\r
+13 12 8 7 3 8 12 13\r
+13 12 9 7 4 9 12 13\r
 p:100 -16,6 -15,5 -17,5 \r
 p:100 16,6 15,5 17,5\r
 k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
 f:180 15,7 17,7 -15,7 -17,7\r
 m:180 15,7 17,7 -15,7 -17,7\r
-s:300 15,7 17,7 -15,7 -17,7 -16,7\r
 q:180 15,7 17,7 -15,7 -17,7\r
 b:300 15,7 17,7 -15,7 -17,7 -16,7\r
 b:300 15,7 17,7 -15,7 -17,7 16,7\r
+s:300 15,7 17,7 -15,7 -17,7 -16,7\r
 s:300 15,7 17,7 -15,7 -17,7 16,7\r
 n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
 R:630 1,3 16,3 -1,3 -16,3\r
@@ -347,17 +350,18 @@ R:630 1,3 16,3 -1,3 -16,3
 // Thai Chess.\r
 Game: makruk\r
 8x8=3\r
-12 11 8 3 7 8 11 12\r
-12 11 9 7 3 9 11 12\r
+13 12 8 3 7 8 12 13\r
+13 12 9 7 4 9 12 13\r
 p:100 -16,6 -15,5 -17,5 \r
 p:100 16,6 15,5 17,5\r
 k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
 f:181 15,7 17,7 -15,7 -17,7\r
 q:181 15,7 17,7 -15,7 -17,7\r
-b:300 15,7 17,7 -15,7 -17,7 -16,7\r
 m:181 15,7 17,7 -15,7 -17,7\r
 s:300 15,7 17,7 -15,7 -17,7 -16,7\r
 s:300 15,7 17,7 -15,7 -17,7 16,7\r
+b:300 15,7 17,7 -15,7 -17,7 -16,7\r
 b:300 15,7 17,7 -15,7 -17,7 16,7\r
 n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
 R:630 1,3 16,3 -1,3 -16,3\r
@@ -380,6 +384,9 @@ b:300 15,7 17,7 -15,7 -17,7 -16,7
 b:300 15,7 17,7 -15,7 -17,7 16,7\r
 n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
 R:630 1,3 16,3 -1,3 -16,3\r
+#\r
+# K& KiN\r
+# M& FifD\r
 \r
 // Thai Chess variant with Ai-Wok (RNF).\r
 Game: Ai-wok\r
@@ -411,13 +418,13 @@ q:181 15,7 17,7 -15,7 -17,7 16,F4 -16,F4
 m:181 15,7 17,7 -15,7 -17,7 16,F4 -16,F4\r
 s:300 15,7 17,7 -15,7 -17,7 -16,7\r
 s:300 15,7 17,7 -15,7 -17,7 16,7\r
-\r
 b:300 15,7 17,7 -15,7 -17,7 -16,7\r
 b:300 15,7 17,7 -15,7 -17,7 16,7\r
-\r
 n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
 R:630 1,3 16,3 -1,3 -16,3\r
-\r
+#\r
+# K& KiN\r
+# M& FifD\r
 \r
 // Ai-Wok using WinBoard's new engine-defined variant mechanism\r
 Game: ai-wok # PN.R...A..SKpn.r...a..sk # makruk\r
@@ -438,18 +445,19 @@ k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7
 // Medieval intermediate between Shatranj and FIDE Chess\r
 Game: courier\r
 12x8\r
-6 4 8 5 10 3 7 9 5 8 4 6\r
-6 4 8 5 10 3 7 9 5 8 4 6\r
+11 9 5 10 8 3 7 6 10 5 9 11\r
+11 9 5 10 8 4 7 6 10 5 9 11\r
 p:65 -16,6 -15,5 -17,5 \r
 p:65 16,6 15,5 17,5\r
 k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
-n:300 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
-b:366 15,3 17,3 -15,3 -17,3\r
-R:550 1,3 16,3 -1,3 -16,3\r
-f:120 15,7 17,7 -15,7 -17,7\r
+k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
 e:70 30,7 34,7 -30,7 -34,7\r
 w:100 1,7 16,7 -1,7 -16,7\r
+f:120 15,7 17,7 -15,7 -17,7\r
 m:280 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 \r
+n:300 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
+b:366 15,3 17,3 -15,3 -17,3\r
+R:550 1,3 16,3 -1,3 -16,3\r
 \r
 // The King moves as a Knight, and vice versa\r
 Game: knightmate\r
@@ -512,6 +520,8 @@ Q:950 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3
 f:450 13,FFFFF207 29,F207 46,F207 47,10207 49,10207 50,11207 35,11207 19,1207 -13,1207 -29,FFFF1207 -46,FFFF1207 -47,FFFF0207 -49,FFFF0207 -50,FFFEF207 -35,FFFEF207 -19,FFFFF207 \r
 A:825 15,3 17,3 -15,3 -17,3 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
 C:875 1,3 16,3 -1,3 -16,3 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
+#\r
+# F& aflafrKafraflKafafsKafsafK\r
 \r
 // Cylinder Chess (WinBoard / XBoard legality testing should be off toplay this!)\r
 Game: cylinder\r
@@ -525,6 +535,13 @@ n:350 14,107 31,107 33,107 18,107 -14,107 -31,107 -33,107 -18,107
 b:450 15,103 17,103 -15,103 -17,103\r
 R:525 1,103 16,3 -1,103 -16,3\r
 Q:1150 1,103 16,3 15,103 17,103 -1,103 -16,3 -15,103 -17,103\r
+#\r
+# P& fmWfceoFifmnD\r
+# N& oN\r
+# B& oB\r
+# R& oR\r
+# Q& oQ\r
+# K& oK\r
 \r
 // Berolina Chess. In WinBoard 4.3.15 you can play this with legality testing switched off\r
 Game: berolina\r
@@ -538,6 +555,8 @@ n:259 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7
 b:296 15,3 17,3 -15,3 -17,3\r
 R:444 1,3 16,3 -1,3 -16,3\r
 Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3\r
+#\r
+# P& fmFfceWifmnA\r
 \r
 // Modern variant with four new pieces in randomly chosen setup on 8x8 board\r
 Game: super\r
@@ -632,6 +651,7 @@ l:530 15,3 17,3 -15,3 -17,3 32,7 -32,7 2,7 -2,7
 # e WA\r
 # c FAD\r
 # l BD\r
+# k KilO2rO3\r
 \r
 Game: fairy/Clobberers-FIDE # P.....EAC....LKpnbrq.........k\r
 8x8\r
@@ -653,6 +673,7 @@ l:530 15,3 17,3 -15,3 -17,3 32,7 -32,7 2,7 -2,7
 # E WA\r
 # C FAD\r
 # L BD\r
+# K KirO2lO3\r
 \r
 Game: fairy/FIDE-Nutters # PNBRQ................Kp...........h.t.c...uk\r
 8x8\r
@@ -674,6 +695,7 @@ t:485 16,3 1,3 -1,3 -16,7 -15,7 -17,7
 # t fsRbWbF\r
 # c fsRbWfhNF\r
 # u fhNbsWbF\r
+# k KisO2\r
 \r
 Game: fairy/Nutters-FIDE # P...........H.T.C...UKpnbrq................k\r
 8x8\r
@@ -695,6 +717,7 @@ t:485 -16,3 1,3 -1,3 16,7 15,7 17,7
 # T fsRbWbF\r
 # C fsRbWfhNF\r
 # U fhNbsWbF\r
+# K KisO2\r
 \r
 Game: fairy/Clobberers-Nutters # P.....EAC....L.......Kp...........h.t.c...uk\r
 8x8\r
@@ -720,6 +743,8 @@ k:-1  1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7
 # E WA\r
 # C FAD\r
 # L BD\r
+# K KirO2lO3\r
+# k KisO2\r
 \r
 Game: fairy/Nutters-Clobberers # P...........H.T.C...UKp.....eac....l.......k\r
 8x8\r
@@ -745,6 +770,8 @@ k:-1  1,34 -1,1034 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7
 # e WA\r
 # c FAD\r
 # l BD\r
+# K KisO2\r
+# k KilO2rO3\r
 \r
 Game: fairy/FIDE-Rookies # PNBRQ................Kp.............w.mh.s.k\r
 8x8\r
@@ -765,6 +792,8 @@ k:-1  1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7
 # w WD\r
 # h HFD\r
 # s W4\r
+# m RN\r
+# k KisO2\r
 \r
 Game: fairy/Rookies-FIDE # P.............W.MH.S.Kpnbrq................k\r
 8x8\r
@@ -785,6 +814,8 @@ k:-1  1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7
 # W WD\r
 # H HFD\r
 # S W4\r
+# M RN\r
+# K KisO2\r
 \r
 Game: fairy/Clobberers-Rookies # P.....EAC....L.......Kp.............w.mh.s.k\r
 8x8\r
@@ -809,6 +840,9 @@ k:-1  1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7
 # w WD\r
 # h HFD\r
 # s W4\r
+# m RN\r
+# K KirO2ilO3\r
+# k KisO2\r
 \r
 Game: fairy/Rookies-Clobberers # P.............W.MH.S.Kp.....eac....l.......k\r
 8x8\r
@@ -830,9 +864,12 @@ k:-1  1,34 -1,1034 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7
 # W WD\r
 # H HFD\r
 # S W4\r
+# M RN\r
 # e WA\r
 # c FAD\r
 # l BD\r
+# K KisO2\r
+# k KilO2irO3\r
 \r
 // Great Shatranj: modern variant with range-two leapers replacing sliders, on 10x8 board.\r
 // Must be played with legality testing off in XBoard 4.4.0.\r
@@ -850,5 +887,81 @@ s:280 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7
 g:640 1,7 16,7 -1,7 -16,7 2,7 -2,7 32,7 -32,7 15,7 17,7 -15,7 -17,7 30,7 34,7 -30,7 -34,7\r
 h:640 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 15,7 17,7 -15,7 -17,7 30,7 34,7 -30,7 -34,7\r
 m:640 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 1,7 16,7 -1,7 -16,7 2,7 -2,7 32,7 -32,7\r
+#\r
+# P& fmWfcF\r
+# E& FA\r
+# W& WD\r
+# G& KAD\r
+# H& NAF\r
+# M& NWD\r
+\r
+// Charge of the Light Brigade\r
+Game: light-brigade # PNBRQKpnbrqk # nocastle\r
+8x8\r
+0 7 0 7 3 0 7 0\r
+4 4 4 4 3 4 4 4\r
+p:74 -16,24 -16,6 -15,5 -17,5 \r
+p:74  16,24 16,6 15,5 17,5\r
+k:-1  1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+n:444 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
+b:400 15,3 17,3 -15,3 -17,3\r
+R:500 1,3 16,3 -1,3 -16,3\r
+Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3\r
+\r
+// King of the Hill (King MUST be #3 and have value -2 to trigger hill eval)\r
+Game: king-of-the-hill # PNBRQKpnbrqk # fairy\r
+8x8\r
+6 4 5 7 3 5 4 6\r
+6 4 5 7 3 5 4 6\r
+p:66 -16,24 -16,6 -15,5 -17,5 \r
+p:66  16,24 16,6 15,5 17,5\r
+k:-2  1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+n:259 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
+b:296 15,3 17,3 -15,3 -17,3\r
+R:444 1,3 16,3 -1,3 -16,3\r
+Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3\r
+\r
+// Bifurcator Chess\r
+Game: bifurcator # PNBRQKpnbrqk # fairy\r
+8x8\r
+6 4 5 7 3 5 4 6\r
+6 4 5 7 3 5 4 6\r
+p:66 -16,24 -16,6 -15,5 -17,5 \r
+p:66  16,24 16,6 15,5 17,5\r
+k:-1  1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+n:259 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
+b:370 15,3 17,3 -15,3 -17,3 15,1FCB8 17,1CB8 -15,1CB8 -17,1FCB8 15,FFFF0CB8 17,10CB8 -15,FFFF0CB8 -17,10CB8\r
+R:518 1,3 16,3 -1,3 -16,3 1,10CB8 16,1FCB8 -1,10CB8 -16,1FCB8 1,FFFF0CB8 16,1CB8 -1,FFFF0CB8 -16,1CB8\r
+Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3\r
+#\r
+# B& BtgabyabsB\r
+# R& RtgabyabsR\r
+\r
+// Variant where no single piece has mating potential\r
+Game: companion # PN....EXW....A.B.X.CUKpn....exw....a.b.x.cuk # fairy\r
+8x8\r
+10 8 6 7 3 5 9 11\r
+10 8 6 7 4 5 9 11\r
+p:74 -16,24 -16,6 -15,5 -17,5 \r
+p:74  16,24 16,6 15,5 17,5\r
+k:-1  1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+k:-1  1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+w:222 30,7 34,7 -30,7 -34,7 45,7 51,7 -45,7 -51,7 \r
+e:296 15,7 17,7 -15,7 -17,7 30,7 34,7 -30,7 -34,7\r
+A:851 16,1003 16,1F003 -16,1003 -16,1F003 1,10003 1,FFFF0003 -1,10003 -1,FFFF0003\r
+x:296 30,7 34,7 -30,7 -34,7 1,7 -1,7 16,7 -16,7\r
+n:296 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
+u:481 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 1,7 16,7 -1,7 -16,7 \r
+c:517 14,FFFF1043 31,F043 33,31043 18,13043 -14,FFFF3043 -31,11043 -33,2F043 -18,11043\r
+B:851 2,3 32,3 15,3 17,3 -2,3 -32,3 -15,3 -17,3\r
+#\r
+# E& FA\r
+# X& WA\r
+# W& AG\r
+# U& WN\r
+# C& NmpafsafF\r
+# A& WyafsW\r
+# K& KisO2\r
+# B& BD0\r
 \r
 // End of game file\r