X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=data%2Ffmax.ini;h=a1d6644708e828cb78b16fa6ac2829ec31f63e3b;hb=58bbc6e831d3989c22e6e6ce1e869224355b9f0e;hp=aaf5cbe4c4d5e65ce7399ef704d2370d5e5ef20e;hpb=af07349064b580cfaba648a5395a64e6b73d7f9f;p=fairymax.git diff --git a/data/fmax.ini b/data/fmax.ini index aaf5cbe..a1d6644 100644 --- a/data/fmax.ini +++ b/data/fmax.ini @@ -135,21 +135,25 @@ Line 2: initial setup of white pieces on back rank Line 3: initial setup of black pieces on back rank Line 4-18: Description of piece types that can occur in the variant -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 can be done only with the original corner piece as specified -by line 2 and 3. 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 description. -If the castling initiator does not start in a central file, the results are +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. +There is one exception to this: if the initial setup does have a white +piece 7, but not a black one, and black has a piece number 9, then +black will always promote to the latter. (This can be useful in variants +with different armies for black and white). + +Castling can be done only with the original corner piece as specified +by line 2 and 3. 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 description. +If the castling initiator does not start in a central file, the results are currently undefined. - -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 + +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 variant description) are ignored. They can be used for comments. @@ -166,17 +170,25 @@ The piece-description lines have the following syntax: c) the move-mode descriptor, most easily given in hexadecimal, as the individual bits specify the various options -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). - -NOTE: piece value 181 for piece 7 is reserved for Makruk, and enables -promotion on the 6th rank. Do not use it in other variants. - +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). + +Pieces with negative values are considered royal. If one side has more than +one royal piece of the same type, he loses if the _last_ one is captured. +This means any 'spare' royal pieces can be sacrificed, and the exchange +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. +For royal piece types larger than 7 there is the special rule that it is not +allowed to leave more than one of them under attack ('duple check'). + +NOTE: piece value 181 for piece 7 is reserved for Makruk, and enables +promotion on the 6th rank. Do not use it in other variants. + The individual bits in the move-mode descriptor have the following meaning: In the last hexadecimal digit: 1 capture allowed (of enemy piece; own pieces always block a move) @@ -232,7 +244,16 @@ black Pawn, respectively, or promotions will have undefined effects. Also note that uMax does do primitive evaluation of Pawn structure, which might become counter-productive if the Pawn move is changed. - +A low digit equal to 4 gets special treatment, as the normal interpretation as +the last and only step of a move which can neither capture nor move is useles. +It will in stead be used as if it was 0 (i.e. there is a follow-up step), +but only if the piece has not moved before. If the 1 or 2 bit of the preceding +toggle digit are set, they then determine what the move can do after this second +step, in the normal way. (For pawn double-push and castling this would normally +be a non-capture.) The 4 and 8 bits of this toggle digit are not used for +toggling the leaper and hopper bits, though, but indicate if e.p. capture +on the reply should be suppressed, and if the move should be allowed to continue +even if the first step hits an occupied square. For the truly lazy, a few complete game descriptions can be found below: @@ -268,20 +289,39 @@ f:180 15,7 17,7 -15,7 -17,7 // Thai Chess. Note: value m = 181 controls promotion at 6th! Game: makruk 8x8 -6 4 5 7 3 5 4 6 -6 4 8 3 7 8 4 6 +12 11 8 7 3 8 11 12 +12 11 9 3 7 9 11 12 p:100 -16,6 -15,5 -17,5 p:100 16,6 15,5 17,5 k:-1 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 -n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 +f:181 15,7 17,7 -15,7 -17,7 +q:181 15,7 17,7 -15,7 -17,7 +b:300 15,7 17,7 -15,7 -17,7 -16,7 +m:181 15,7 17,7 -15,7 -17,7 s:300 15,7 17,7 -15,7 -17,7 -16,7 +s:300 15,7 17,7 -15,7 -17,7 16,7 +b:300 15,7 17,7 -15,7 -17,7 16,7 +n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 R:630 1,3 16,3 -1,3 -16,3 -m:181 15,7 17,7 -15,7 -17,7 + +// Cambodian Chess. Like Makruk, but with extra initial King and Met moves +Game: fairy/Cambodian # PN.R.M....SKpn.r.m....sk +8x8 +13 12 8 3 7 8 12 13 +13 12 9 7 4 9 12 13 +p:100 -16,6 -15,5 -17,5 +p:100 16,6 15,5 17,5 +k:-1 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 -16,10F4 -16,1F0F4 -1,100F4 1,FFFF00F4 +k:-1 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 16,10F4 16,1F0F4 1,100F4 -1,FFFF00F4 +f:181 15,7 17,7 -15,7 -17,7 16,F4 -16,F4 +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 +s:300 15,7 17,7 -15,7 -17,7 -16,7 s:300 15,7 17,7 -15,7 -17,7 16,7 -f:181 15,7 17,7 -15,7 -17,7 -q:181 15,7 17,7 -15,7 -17,7 b:300 15,7 17,7 -15,7 -17,7 -16,7 b:300 15,7 17,7 -15,7 -17,7 16,7 +n:450 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 +R:630 1,3 16,3 -1,3 -16,3 // Medieval intermediate between Shatranj and FIDE Chess Game: courier @@ -357,7 +397,7 @@ b:450 15,103 17,103 -15,103 -17,103 R:525 1,103 16,3 -1,103 -16,3 Q:1150 1,103 16,3 15,103 17,103 -1,103 -16,3 -15,103 -17,103 -// 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 Game: berolina 8x8 6 4 5 7 3 5 4 6 @@ -389,29 +429,161 @@ A:1200 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 o:700 2,7 30,7 32,7 34,7 -2,7 -30,7 -32,7 -34,7 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 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 -32,7 -34,7 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 -d:625 1,7 16,7 -1,7 -16,7 15,3 17,3 -15,3 -17,3 +w:340 1,7 16,7 -1,7 -16,7 2,7 32,7 -2,7 -32,7 + +// Seirawan Chess (with Archbishop and Chancellor gated in during game) +Game: seirawan +8x8 +5 3 4 7 6 4 3 5 +5 3 4 7 6 4 3 5 +p:74 -16,24 -16,6 -15,5 -17,5 +p:74 16,24 16,6 15,5 17,5 +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:444 1,3 16,3 -1,3 -16,3 +k:-1 1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 +Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 +k:-1 1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 +h:780 15,3 17,3 -15,3 -17,3 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 +E: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 + +// Spartan Chess, where black has a different army from white's orthodox FIDE, with two kings +Game: fairy/Spartan # PNBRQ..............K....q.lwg.....c...hk +8x8 +6 4 5 7 11 5 4 6 +3 10 12 8 8 12 9 3 +p:74 -16,64 -16,6 -15,5 -17,5 +h:70 15,E4 17,E4 16,5 15,6 17,6 +l:290 15,7 17,7 -15,7 -17,7 30,7 34,7 -30,7 -34,7 1,6 -1,6 +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:444 1,3 16,3 -1,3 -16,3 +Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 +c:255 1,7 16,7 -1,7 -16,7 2,7 -2,7 32,7 -32,7 +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 +G:640 1,3 16,3 -1,3 -16,3 15,7 17,7 -15,7 -17,7 +k:-435 1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 +k:-435 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 -Game: fairy +Game: spartan 8x8 -10 9 8 7 3 5 4 6 -10 9 8 7 3 5 4 6 +6 4 5 7 11 5 4 6 +3 10 12 8 8 12 9 3 +p:74 -16,64 -16,6 -15,5 -17,5 +h:70 15,E4 17,E4 16,5 15,6 17,6 +l:290 15,7 17,7 -15,7 -17,7 30,7 34,7 -30,7 -34,7 1,6 -1,6 +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:444 1,3 16,3 -1,3 -16,3 +Q:851 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 +c:255 1,7 16,7 -1,7 -16,7 2,7 -2,7 32,7 -32,7 +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 +G:640 1,3 16,3 -1,3 -16,3 15,7 17,7 -15,7 -17,7 +k:-435 1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 +k:-435 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 + +// Set for Chess with Different Armies, FIDE vs Color-bound Cloberers (legality-testing off!) +Game: fairy/FIDE-Clobberers # PNBRQ.........Kp.....eac....lk +8x8 +6 4 5 7 10 5 4 6 +12 3 8 9 11 8 3 12 p:100 -16,24 -16,6 -15,5 -17,5 p:100 16,24 16,6 15,5 17,5 -k:-1 1,34 -1,34 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 +e:320 30,7 34,7 -30,7 -34,7 16,7 -16,7 1,7 -1,7 n:325 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 b:350 15,3 17,3 -15,3 -17,3 -R:500 1,3 16,3 -1,3 -16,3 +R:500 16,3 -16,3 -1,3 1,3 Q:950 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 -e:60 30,7 34,7 -30,7 -34,7 -H:560 14,3 31,3 33,3 18,3 -14,3 -31,3 -33,3 -18,3 -O:320 1,BA 16,BA -1,BA -16,BA +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 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 -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 -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 -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 -m:275 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 +k:-1 1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +k:-1 1,34 -1,1034 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +l:530 15,3 17,3 -15,3 -17,3 32,7 -32,7 2,7 -2,7 + +Game: fairy/Clobberers-FIDE # P.....EAC....LKpnbrq.........k +8x8 +12 3 8 7 10 8 3 12 +6 4 5 9 11 5 4 6 +p:100 -16,24 -16,6 -15,5 -17,5 +p:100 16,24 16,6 15,5 17,5 +e:320 30,7 34,7 -30,7 -34,7 16,7 -16,7 1,7 -1,7 +n:325 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 +b:350 15,3 17,3 -15,3 -17,3 +R:500 16,3 -16,3 -1,3 1,3 +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 +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 +Q:950 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 +k:-1 1,34 -1,1034 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +k:-1 1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +l:530 15,3 17,3 -15,3 -17,3 32,7 -32,7 2,7 -2,7 + +Game: fairy/FIDE-Nutters # PNBRQ................Kp...........h.t.c...uk +8x8 +6 4 5 7 10 5 4 6 +11 3 8 9 10 8 3 11 +p:100 -16,24 -16,6 -15,5 -17,5 +p:100 16,24 16,6 15,5 17,5 +h:310 31,7 33,7 15,7 17,7 -31,7 -33,7 -15,7 -17,7 +n:325 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 +b:350 15,3 17,3 -15,3 -17,3 +R:500 16,3 -16,3 -1,3 1,3 +Q:950 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 +u:400 31,7 33,7 14,7 18,7 1,7 -1,7 -16,7 -15,7 -17,7 +C:935 16,3 1,3 -1,3 14,7 31,7 33,7 18,7 15,7 17,7 -16,7 -15,7 -17,7 +k:-1 1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +t:485 16,3 1,3 -1,3 -16,7 -15,7 -17,7 + +Game: fairy/Nutters-FIDE # P...........H.T.C...UKpnbrq................k +8x8 +11 3 6 7 10 6 3 11 +8 4 5 9 10 5 4 8 +p:100 -16,24 -16,6 -15,5 -17,5 +p:100 16,24 16,6 15,5 17,5 +h:310 31,7 33,7 15,7 17,7 -31,7 -33,7 -15,7 -17,7 +n:325 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7 +b:350 15,3 17,3 -15,3 -17,3 +u:400 -31,7 -33,7 -14,7 -18,7 1,7 -1,7 16,7 15,7 17,7 +C:935 -16,3 1,3 -1,3 -14,7 -31,7 -33,7 -18,7 -15,7 -17,7 16,7 15,7 17,7 +R:500 16,3 -16,3 -1,3 1,3 +Q:950 1,3 16,3 15,3 17,3 -1,3 -16,3 -15,3 -17,3 +k:-1 1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +t:485 -16,3 1,3 -1,3 16,7 15,7 17,7 + +Game: fairy/Clobberers-Nutters # P.....EAC....L.......Kp...........h.t.c...uk +8x8 +6 4 5 7 10 5 4 6 +11 3 8 9 12 8 3 11 +p:100 -16,24 -16,6 -15,5 -17,5 +p:100 16,24 16,6 15,5 17,5 +h:310 31,7 33,7 15,7 17,7 -31,7 -33,7 -15,7 -17,7 +e:320 30,7 34,7 -30,7 -34,7 16,7 -16,7 1,7 -1,7 +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 +l:530 15,3 17,3 -15,3 -17,3 32,7 -32,7 2,7 -2,7 +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 +u:400 31,7 33,7 14,7 18,7 1,7 -1,7 -16,7 -15,7 -17,7 +C:935 16,3 1,3 -1,3 14,7 31,7 33,7 18,7 15,7 17,7 -16,7 -15,7 -17,7 +k:-1 1,34 -1,1034 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +t:485 16,3 1,3 -1,3 -16,7 -15,7 -17,7 +k:-1 1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 + +Game: fairy/Nutters-Clobberers # P...........H.T.C...UKp.....eac....l.......k +8x8 +11 3 6 7 10 6 3 11 +5 4 8 9 12 8 4 5 +p:100 -16,24 -16,6 -15,5 -17,5 +p:100 16,24 16,6 15,5 17,5 +h:310 31,7 33,7 15,7 17,7 -31,7 -33,7 -15,7 -17,7 +e:320 30,7 34,7 -30,7 -34,7 16,7 -16,7 1,7 -1,7 +l:530 15,3 17,3 -15,3 -17,3 32,7 -32,7 2,7 -2,7 +u:400 -31,7 -33,7 -14,7 -18,7 1,7 -1,7 16,7 15,7 17,7 +C:935 -16,3 1,3 -1,3 -14,7 -31,7 -33,7 -18,7 -15,7 -17,7 16,7 15,7 17,7 +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 +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 +k:-1 1,34 -1,34 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 +t:485 -16,3 1,3 -1,3 16,7 15,7 17,7 +k:-1 1,34 -1,1034 1,7 -1,7 16,7 15,7 17,7 -16,7 -15,7 -17,7 -// 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. // Must be played with legality testing off in XBoard 4.4.0. Game: great 10x8