Add game definition of Spartan Chess
[fairymax.git] / data / fmax.ini
index 4c75448..d4e5cef 100644 (file)
@@ -135,21 +135,21 @@ Line 2:     initial setup of white pieces on back rank
 Line 3:     initial setup of black pieces on back rank\r
 Line 4-18:  Description of piece types that can occur in the variant\r
 \r
-There can be upto 15 piece types per variant, numbered 1 to 15.
-Numbers 1 and 2 are considered Pawns for white and black, respectively,
-and the 2nd and 7th rank of the opening setup will be filled with them.
-These pieces will automatically promote to piece number 7 when they 
-reach last rank. So in normal Chess, piece 7 should be programmed as Queen.
-
-Castling currently can be done only with a piece number 6 in the corner,
-so in normal Chess you should program piece 6 as Rook. Any royal piece
-can in principle castle. (Subject to the normal restrictions on castling,
-i.e. not passing through check etc.) If you don't want that, remove the 
-castling moves from the King desription. If the castling initiator does 
-not start in a central file, the results are currently undefined.\r
-
-Most variant definitions can be seen at the end of this file.
-Other lines in this file (i.e. those not recognized as belonging to a
+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
+These pieces will automatically promote to piece number 7 when they \r
+reach last rank. So in normal Chess, piece 7 should be programmed as Queen.\r
+\r
+Castling can be done only with the original corner piece as specified\r
+by line 2 and 3. Any royal piece can in principle castle. (Subject to \r
+the normal restrictions on castling, i.e. not passing through check etc.)\r
+If you don't want that, remove the castling moves from the King description. \r
+If the castling initiator does not start in a central file, the results are \r
+currently undefined.\r
+\r
+Most variant definitions can be seen at the end of this file.\r
+Other lines in this file (i.e. those not recognized as belonging to a\r
 variant description) are ignored. They can be used for comments.\r
 \r
 \r
@@ -166,14 +166,24 @@ The piece-description lines have the following syntax:
    c) the move-mode descriptor, most easily given in hexadecimal, as the\r
       individual bits specify the various options\r
 \r
-The piece indicator character is used to set up positions, and for the
-promotion choice as 5th character of an input move. (Fairy-Max itself
-always promotes to "Queen", i.e. the 7th piece of the list.)
-If more pieces use the same letter, the first one is used for white,
-and the last one for black. If more than two have the same name, the 
-others cannot be indicated at all, but they could still occur in the
-initial setup (where you specify them by number, not letter).
-
+The piece indicator character is used to set up positions, and for the\r
+promotion choice as 5th character of an input move. (Fairy-Max itself\r
+always promotes to "Queen", i.e. the 7th piece of the list.)\r
+If more pieces use the same letter, the first one is used for white,\r
+and the last one for black. If more than two have the same name, the \r
+others cannot be indicated at all, but they could still occur in the\r
+initial setup (where you specify them by number, not letter).\r
+\r
+Pieces with negative values are considered royal. If one side has more than\r
+one royal piece of the same type, he loses if the _last_ one is captured,\r
+with the special rule that he is not allowed to leave more than one of\r
+them under attack. This means the 'spare' royal pieces can be sacrificed,\r
+and the exchange value assumed for them will be the absolute value of what\r
+you define for them.\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
+\r
 The individual bits in the move-mode descriptor have the following meaning:\r
 In the last hexadecimal digit:\r
     1 capture allowed (of enemy piece; own pieces always block a move)\r
@@ -262,6 +272,24 @@ q:180 15,7 17,7 -15,7 -17,7
 e:110 30,7 34,7 -30,7 -34,7\r
 f:180 15,7 17,7 -15,7 -17,7\r
 \r
+// Thai Chess. Note: value m = 181 controls promotion at 6th!\r
+Game: makruk\r
+8x8\r
+6 4 5 7 3 5 4 6\r
+6 4 8 3 7 8 4 6\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
+n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
+s:300 15,7 17,7 -15,7 -17,7 -16,7\r
+R:630 1,3 16,3 -1,3 -16,3\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
+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
+b:300 15,7 17,7 -15,7 -17,7 16,7\r
+\r
 // Medieval intermediate between Shatranj and FIDE Chess\r
 Game: courier\r
 12x8\r
@@ -336,7 +364,7 @@ b:450 15,103 17,103 -15,103 -17,103
 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
-// Berolina Chess. In WinBoard 4.3.15 you can play this with legality testing switched off
+// Berolina Chess. In WinBoard 4.3.15 you can play this with legality testing switched off\r
 Game: berolina\r
 8x8\r
 6 4 5 7 3 5 4 6\r
@@ -370,27 +398,27 @@ g:640 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 2,7 30,7 32,7 34,7 -2,7 -30,7 -3
 m:-1  1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 16,70 -16,70\r
 d:625 1,7 16,7 -1,7 -16,7 15,3 17,3 -15,3 -17,3\r
 \r
-Game: fairy\r
+// Set for Chess with Different Armies, FIDE vs Color-bound Cloberers (legality-testing off!)\r
+Game: fairy/FIDE-Clobberers\r
 8x8\r
-10 9 8 7 3 5 4 6\r
-10 9 8 7 3 5 4 6\r
+6 4 5 7 3 5 4 6\r
+11 9 10 12 8 10 9 11\r
 p:100 -16,24 -16,6 -15,5 -17,5 \r
 p:100 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 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7\r
 n:325 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
 b:350 15,3 17,3 -15,3 -17,3\r
-R:500 1,3 16,3 -1,3 -16,3\r
+R:500 16,3 -16,3 -1,3 1,3\r
 Q:950 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3\r
-e:60 30,7 34,7 -30,7 -34,7\r
-H:560 14,3 31,3 33,3 18,3 -14,3 -31,3 -33,3 -18,3\r
-O:320 1,BA 16,BA -1,BA -16,BA\r
+k:-1  1,34 -1,1034 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7\r
+e:320 30,7 34,7 -30,7 -34,7 16,7 -16,7 1,7 -1,7\r
+c:480 15,7 17,7 -15,7 -17,7 32,7 -32,7 2,7 -2,7 30,7 34,7 -30,7 -34,7\r
+l:530 15,3 17,3 -15,3 -17,3 32,7 -32,7 2,7 -2,7\r
 A:875 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:900 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
-v:850 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7\r
-Z:1260 1,3 16,3 -1,3 -16,3 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
 m:275 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7\r
+H:560 14,3 31,3 33,3 18,3 -14,3 -31,3 -33,3 -18,3\r
 \r
-// Great Shatranj: modern variant with range-two leapers replacing sliders, on 10x8 board
+// 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
 Game: great\r
 10x8\r
@@ -407,4 +435,21 @@ 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 -3
 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
+// Spartan Chess, where black has a different army from white's orthodox FIDE, with two kings\r
+Game: fairy/Spartan\r
+8x8\r
+6 4 5 7 3 5 4 6\r
+11 9 3 10 10 3 8 11\r
+p:74 -16,64 -16,6 -15,5 -17,5 \r
+h:74  15,E4  17,E4 16,5 15,6 17,6\r
+k:-400 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
+w:790 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
+G:814 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
+l:270 15,7 17,7 -15,7 -17,7 30,7 34,7 -30,7 -34,7 1,6 -1,6\r
+c:250 1,7 16,7 -1,7 -16,7 2,7 -2,7 32,7 -32,7\r
+\r
 // End of game file\r