I've managed to get CuteChess-Cli working and running tests on Maverick.
I created a blog post which won't be of interest to the seasoned testers but may be interesting for anyone wanting to set up such a framework.
Here's the link:
http://www.chessprogramming.net/compute ... framework/
At the end of the post there is a link to download the whole framework as one big 7-zip file.
Best,
Steve
Download my Testing Framework...
Moderator: Ras
-
Steve Maughan
- Posts: 1317
- Joined: Wed Mar 08, 2006 8:28 pm
- Location: Florida, USA
Download my Testing Framework...
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
-
asanjuan
- Posts: 214
- Joined: Thu Sep 01, 2011 5:38 pm
- Location: Seville, Spain
Re: Download my Testing Framework...
I have a similar framework, and I recommend you to use a json file for cutechess. It is very easy to use, and after configuring, the cutechess command is easy to read and to change.
For example: in my engines.json file:
the command inside my batch file that runs the tournament is easier to write.
Just my two cents.
For example: in my engines.json file:
Code: Select all
[
{
"command":"fruit_21.exe",
"name":"fruit",
"protocol":"uci",
"workingDirectory":"C:\\chess\\fruit_21"
},
{
"command":"Gull 1_0a.exe",
"name":"gull",
"protocol":"uci",
"workingDirectory":"C:\\chess\\Gull 1_0a"
},
{
"command":"Dirty.exe",
"name":"dirty",
"protocol":"xboard",
"workingDirectory":"C:\\chess\\dirty_acca3"
},
{
"command":"eveann.exe",
"name":"eveann",
"protocol":"xboard",
"workingDirectory":"C:\\chess\\eveann171a"
},
{
"command":"rhetoric_lite.exe",
"name":"lite",
"protocol":"uci",
"workingDirectory":"C:\\chess\\rhetoric_lite"
},
{
"command":"rhetoric_x64.exe",
"name":"rhetoric",
"protocol":"uci",
"workingDirectory":"C:\\chess\\Rhetoric_1.0"
}
,{
"command":"SOS-51_Arena.exe",
"name":"sos",
"protocol":"uci",
"workingDirectory":"C:\\chess\\arena_3.0\\Engines\\SOS"
}
]Code: Select all
del match.pgn
cutechess-cli -engine conf=rhetoric -engine conf=sos -each tc=40/10+0.2 book=gmbook.bin -rounds 80 -games 2 -repeat -pgnout match.pgn -draw 5 0 -resign 4 500
pause
Still learning how to play chess...
knigths move in "L" shape ¿right?
knigths move in "L" shape ¿right?
-
asanjuan
- Posts: 214
- Joined: Thu Sep 01, 2011 5:38 pm
- Location: Seville, Spain
Re: Download my Testing Framework...
Also, I have bayeselo.exe on the same folder, and two more files:
A txt with the commands to send to baseselo,
and a BayesElo.Bat file to see the results of the match (even if it is running):
The output produced is somehow weird, because the "enter" chars between commands are lost, but, ok, is enough for me.
Regards.
A txt with the commands to send to baseselo,
Code: Select all
readpgn match.pgn
players
elo
mm
offset 0 rhetoric
ratings
los
x
xCode: Select all
bayeselo.exe < bayeselo.txt
pause
Regards.
Still learning how to play chess...
knigths move in "L" shape ¿right?
knigths move in "L" shape ¿right?
-
Steve Maughan
- Posts: 1317
- Joined: Wed Mar 08, 2006 8:28 pm
- Location: Florida, USA
Re: Download my Testing Framework...
Thanks Alberto -
I'll give the json approach a try. It looks to simplify the process.
Steve
I'll give the json approach a try. It looks to simplify the process.
Steve
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
-
emadsen
- Posts: 441
- Joined: Thu Apr 26, 2012 1:51 am
- Location: Oak Park, IL, USA
- Full name: Erik Madsen
Re: Download my Testing Framework...
Or just use the caret character (^) in your .bat script to break lines.use a json file for cutechess
Code: Select all
cutechess-cli.exe -tournament gauntlet -event "MadChess Gauntlet" -site "Cute Chess" -games 2 -rounds 50 -repeat ^
-pgnin "..\..\Opening Books\Arasan.pgn" -pgnout "MadChessBullet.pgn" ^
-concurrency 4 -recover ^
-each restart=on tc=120+1 ^
-engine cmd=MadChessEngine.exe dir="..\..\Engines\MadChess\MadChess 1.3.04" proto=uci ^
-engine cmd=BigLion.exe dir="..\..\Engines\Big Lion\Big Lion 2.23" proto=uci ^
-engine cmd=bikjump.exe dir="..\..\Engines\BikJump\BikJump 2.01" name="BikJump v2.01" proto=uci ^Erik Madsen | My C# chess engine: https://www.madchess.net