Help me configure Fairy-Max and Sjaak II for custom games
Posted: 22 Apr 2021, 15:08
Hello!
I've recently discovered chess engines capable of playing chess variants with custom pieces, and downloaded them along with Winboard. I'm using Winboard 4.9.1 along with Fairy-Max 5.0b3.
I tried to configure a custom chess variant, but I've encountered some trouble.
Following is the code I entered at the end of the fmax.ini text file:
The desired result was:
A chess board of dimensions 9×8,
Pawns both move and capture forwards.
Rooks and knights are normal starting on both edges of the board.
Next to the knights are two ferzes using the bishop graphic.
Next to them are two wazirs using the archbishop graphic.
In the middle is a normal king except that there is no castling.
The result I got is:
The board loads the correct size, there is a black rook and knight at the top left squares, but the rest of the squares are empty. The game cannot proceed.
While researching how to fix this problem I found the Sjaak II engine and installed the version 1.4.1. I tried to replicate the same game there.
This is what I added to the variants.txt file:
The result is bugged again.
The board looks the same, but there is also an error that pops up saying:
Three instances of this error pop up. The error seems to reference an earlier version of the FEN.
The values assigned to the pieces is arbitrary, as changing them will be easy once I make a variant for real, this is more of a test/exercise to get a hold on the configuration files.
Would someone kindly provide some help for configuring either or both of these engines.
Thank you for your trouble.
I've recently discovered chess engines capable of playing chess variants with custom pieces, and downloaded them along with Winboard. I'm using Winboard 4.9.1 along with Fairy-Max 5.0b3.
I tried to configure a custom chess variant, but I've encountered some trouble.
Following is the code I entered at the end of the fmax.ini text file:
- Code: Select all
//My variant 1
Game: my_game_1 # nocastle # PNVR..AKpnvr..ak
9x8
3 4 5 6 7 6 5 4 3
3 4 5 6 7 6 5 4 3
p:100 -16,7
p:100 16,7
R:450 1,3 16,3 -1,3 -16,3
n:300 14,7 31,7 33,7 18,7 -14,7 -31,7 -33,7 -18,7
v:150 15,7 17,7 -15,7 -17,7
a:125 1,7 -1,7 16,7 -16,7
k:-1 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7
The desired result was:
A chess board of dimensions 9×8,
Pawns both move and capture forwards.
Rooks and knights are normal starting on both edges of the board.
Next to the knights are two ferzes using the bishop graphic.
Next to them are two wazirs using the archbishop graphic.
In the middle is a normal king except that there is no castling.
The result I got is:
The board loads the correct size, there is a black rook and knight at the top left squares, but the rest of the squares are empty. The game cannot proceed.
While researching how to fix this problem I found the Sjaak II engine and installed the version 1.4.1. I tried to replicate the same game there.
This is what I added to the variants.txt file:
- Code: Select all
#############################################################
# My_game_1 #
#############################################################
Variant: Mygame1 (9x8)
Board: 9x8
FEN: "rnbakabnr/ppppppppp/9/9/9/9/PPPPPPPPP/RNBAKABNR w - - 0 1"
XBoard pieces: "PNBR...AKpnbr...ak"
Zone: rank9 = a9,b9,c9,d9,e9,f9,g9,h9,i9
Zone: rank1 = a1,b1,c1,d1,e1,f1,g1,h1,i1
Piece: Knight
Move: leap (2,1)
Symbol: "N", "N,n"
Value: 320
Piece: Rook
Move: slide (H,V)
Symbol: "R", "R,r"
Value: 500
Piece: Ferz
Move: leap (1,1)
Symbol: "F", "B,b"
Value: 150
Piece: Wazir
Move: leap (0,1)
Symbol: "W", "A,a"
Value 125
Piece: King
Move: leap (0,1)|(1,1)
Symbol: "K", "K,k"
Flags: royal
Piece: Pawn
Move: step N
Symbol: " ", "P,p"
Promotion: rank9, rank1, "BA"
Value: 100
Rule: checkmate = win
Rule: stalemate = draw
Rule: repeat3 = draw
The result is bugged again.
The board looks the same, but there is also an error that pops up saying:
unknown piece type 'r' (bad FEN rnbakabnr/ppppppppp/9/9/PPPPPPPPP/RNBAKABNR w KQkq -)
Three instances of this error pop up. The error seems to reference an earlier version of the FEN.
The values assigned to the pieces is arbitrary, as changing them will be easy once I make a variant for real, this is more of a test/exercise to get a hold on the configuration files.
Would someone kindly provide some help for configuring either or both of these engines.
Thank you for your trouble.