Is there a command line program (or some switch I'm missing in winboard) to have two winboard (or UCI) engines run against each other and report the result?
I tried /fcp and /scp with winboard, but that just brings up the GUI and waits on a human to start the game.
I'm asking as I'd like to try CLOP tuning.
Thanks,
-Erin
command line engine match?
Moderator: Ras
-
- Posts: 349
- Joined: Sat Aug 06, 2016 8:31 pm
- Location: United States
-
- Posts: 540
- Joined: Thu Mar 09, 2006 3:01 pm
- Full name: Brian Richardson
Re: command line engine match?
CLOP has its own GUI and it runs just fine (but takes a very long time)
If you actually want to use Winboard, see the 'noGUI' option
If you actually want to use Winboard, see the 'noGUI' option
-
- Posts: 349
- Joined: Sat Aug 06, 2016 8:31 pm
- Location: United States
Re: command line engine match?
I did see that, but I thought it was just showing the results, that you still needed to implement a program to return W, L, or D. You're saying there's a way to inform this GUI about the engines to run a game?brianr wrote:CLOP has its own GUI and it runs just fine (but takes a very long time)
Will check that out. Thanks.brianr wrote:If you actually want to use Winboard, see the 'noGUI' option
-
- Posts: 2929
- Joined: Sat Jan 22, 2011 12:42 am
- Location: NL
Re: command line engine match?
You want the "-mg X" option, which plays X games and reports the results.zenpawn wrote:Is there a command line program (or some switch I'm missing in winboard) to have two winboard (or UCI) engines run against each other and report the result?
I tried /fcp and /scp with winboard, but that just brings up the GUI and waits on a human to start the game.
I'm asking as I'd like to try CLOP tuning.
There's also cutechess-cli.
-
- Posts: 349
- Joined: Sat Aug 06, 2016 8:31 pm
- Location: United States
Re: command line engine match?
Thanks. So, for this application, I would use -mg 1 and -noGUI (which just minimizes it). Unfortunately, the result is reported via a dialog window rather than stdout.Evert wrote: You want the "-mg X" option, which plays X games and reports the results.
There's also cutechess-cli.
-
- Posts: 4396
- Joined: Fri Mar 10, 2006 5:23 am
- Location: http://www.arasanchess.org
Re: command line engine match?
If you add -cp to the command line it will skip the initial mode dialog. But if I remember right CLOP xomes with a sample python script to run matches and I thougjt that used cutechess-cli.
However, I don't recommend CLOP for tuning. I have had pooe results from it and it can take a long time to converge.
--Jon
However, I don't recommend CLOP for tuning. I have had pooe results from it and it can take a long time to converge.
--Jon
-
- Posts: 4718
- Joined: Wed Oct 01, 2008 6:33 am
- Location: Regensburg, Germany
- Full name: Guenther Simon
Re: command line engine match?
I would use a batch file and add a line which lets hgtblb spit out a result table each x games and let it open by an editor.zenpawn wrote:Thanks. So, for this application, I would use -mg 1 and -noGUI (which just minimizes it). Unfortunately, the result is reported via a dialog window rather than stdout.Evert wrote: You want the "-mg X" option, which plays X games and reports the results.
There's also cutechess-cli.
I did similar things since long, but I did not add the line for the result in the game batch directly,
but instead created another batch which I just executed when I wanted to see the current result/standing.
Hgtblb is an util which creates 2 files from reading a pgn file.
A 's' and a 'x' file (appended to a text file named the same as the given pgn file.)
One contains a table and a few stats and the other all results. This is also from HGM and delivered with WB IIRC.
Example with my editor: (with the joker '*' it opens both new files)
Code: Select all
hgtblb XYZ.pgn
start c:\ultraedit\uedit32.exe "XYZ*.txt"
exit
Code: Select all
name perc. pnt games Buchh S-B
1. Matilde_261 56% 78.5 /140 (8610.0, 4827.8)
2. Pigeon_136-64 44% 61.5 /140 (10990.0, 4827.8)
Code: Select all
Cross table, sorted by score percentage, Buchholz, SB
Matilde_261 Pigeon_136-64
################## 110=101111111100=0
################## 0==10=1==1==00=01=
################## =011011=00101=0010
1. Matilde_261 ################## ==0==1111==1111111
################## 01011110=010011=11
################## =010011=11000=1011
################## 01=1=0==101=011010
################## 01=001=00010=1 56% 78.5 (8610.0, 4827.8)
001=010000000011=1 ##################
1==01=0==0==11=10= ##################
=100100=11010=1101 ##################
2. Pigeon_136-64 ==1==0000==0000000 ##################
10100001=101100=00 ##################
=101100=00111=0100 ##################
10=0=1==010=100101 ##################
10=110=11101=0 ################## 44% 61.5 (10990.0, 4827.8)
-
- Posts: 349
- Joined: Sat Aug 06, 2016 8:31 pm
- Location: United States
Re: command line engine match?
Definitely planning a batch file, just need a way to launch the game and gather the result to return a simple W, L, D for CLOP. Are you using cutechess-cli to kick off the games as recommended by Jon Dart?Guenther wrote: I would use a batch file and add a line which lets hgtblb spit out a result table each x games and let it open by an editor.
-
- Posts: 349
- Joined: Sat Aug 06, 2016 8:31 pm
- Location: United States
Re: command line engine match?
It comes with an example script, but I'm not seeing where it actually causes a game to be played.jdart wrote:If you add -cp to the command line it will skip the initial mode dialog. But if I remember right CLOP xomes with a sample python script to run matches and I thougjt that used cutechess-cli.
Thanks, I've read similar and have been quietly rooting on the Python script attempts at genericizing Texel tuning for any engine: http://talkchess.com/forum/viewtopic.php?t=61856jdart wrote: However, I don't recommend CLOP for tuning. I have had pooe results from it and it can take a long time to converge.
-
- Posts: 4718
- Joined: Wed Oct 01, 2008 6:33 am
- Location: Regensburg, Germany
- Full name: Guenther Simon
Re: command line engine match?
I did not see the clop part because I answered to something later in this thread about WB, but for clop it seems there are already scripts and those all assume cutechess-cli.zenpawn wrote:Definitely planning a batch file, just need a way to launch the game and gather the result to return a simple W, L, D for CLOP. Are you using cutechess-cli to kick off the games as recommended by Jon Dart?Guenther wrote: I would use a batch file and add a line which lets hgtblb spit out a result table each x games and let it open by an editor.