cutechess-cli 0.7.2

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.7.2

Post by Ferdy »

Desperado wrote:Hello,

just some easy little questions about cutechess parameters.

1. What is the trust parameter used for ?

Code: Select all

trust
Trust result claims from the engine without validation. By default all claims are validated.
Probably intended for xboard/winboard engines.
Desperado wrote: 2. Does the st parameter accept fractions of seconds, like 0.25 ?
No.
Desperado wrote:3. What is the use for the inf parameter ?

Code: Select all

tc=[tcformat | inf]
This is probably a form of infinite time. Say you may want to do a fixed depth search game for example

Code: Select all

depth = 12 tc=inf
The engine in this case cannot be forfeited due to time, because of inf. If for example

Code: Select all

depth = 12 st = 1
The engine can be forfeited due to time if it exceeds 1 sec without sending its bestmove.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.7.2

Post by Ferdy »

Ferdy wrote:
Desperado wrote:Hello,

just some easy little questions about cutechess parameters.

1. What is the trust parameter used for ?

Code: Select all

trust
Trust result claims from the engine without validation. By default all claims are validated.
Probably intended for xboard/winboard engines.
Desperado wrote: 2. Does the st parameter accept fractions of seconds, like 0.25 ?
No.
I have to correct this, the answer is yes. Values less than 1 sec is correctly converted to ms.

Code: Select all

// Search time per move
	else if (name == "st")
	{
			bool ok = false;
			int moveTime = val.toDouble(&ok) * 1000.0;
			if (!ok || moveTime <= 0&#41;
			&#123;
				qWarning&#40;) << "Invalid search time&#58;" << val;
				return false;
			&#125;
			data.tc.setTimePerMove&#40;moveTime&#41;;
	&#125;
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.7.2

Post by Ferdy »

Desperado wrote:2. Does the st parameter accept fractions of seconds, like 0.25 ?
Yes.
Desperado wrote:If so, should timemargin be used with st parameter ?
The timemargin can be used with st.
User avatar
Desperado
Posts: 879
Joined: Mon Dec 15, 2008 11:45 am

Re: cutechess-cli 0.7.2

Post by Desperado »

Hi, Ferdi,

thanks for your explanations.

@Ilari

So, finally here is my wish list for a future version of cutechess-cli:

* knockout tournament mode

Regards
User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 7:45 pm
Location: Finland

Re: cutechess-cli 0.7.2

Post by ilari »

Desperado wrote:Hi, Ferdi,

thanks for your explanations.

@Ilari

So, finally here is my wish list for a future version of cutechess-cli:

* knockout tournament mode

Regards
Issue made: https://github.com/cutechess/cutechess/issues/18
Now all I need is time :lol:
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.7.2

Post by Ferdy »

After some tests with version 0.7.3, I encountered this "has no side" warning. This is the first time I encountered it and actually stopped the whole match before it is finished.
Started game 332 of 1000 (Cheng_4.39_x64 vs D2015.1.252)
Finished game 330 (Hakkapeliitta 3.0 x64 vs D2015.1.252): 1-0 {White wins by adj
udication}
Finished game 331 (D2015.1.252 vs Cheng_4.39_x64): 1/2-1/2 {Draw by adjudication
}
Warning: Player HIARCS 14 WCSC has no side
Finished game 332 (Cheng_4.39_x64 vs D2015.1.252): 1/2-1/2 {Draw by insufficient
mating material}
Started game 335 of 1000 (D2015.1.252 vs Hannibal 1.1 64bit)
Warning: Player HIARCS 14 WCSC has no side
Finished game 335 (D2015.1.252 vs Hannibal 1.1 64bit): 1/2-1/2 {Draw by insuffic
ient mating material}
Started game 336 of 1000 (Hannibal 1.1 64bit vs D2015.1.252)
Finished game 336 (Hannibal 1.1 64bit vs D2015.1.252): 1/2-1/2 {Draw by insuffic
ient mating material}
Started game 337 of 1000 (D2015.1.252 vs Quazar_0.4_x64)
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.7.2 - 24sept2015

Post by Ferdy »

Here is a compile for windows with following changes. This is still unreleased but code changes are already available. I think these changes are significant, so just for those interested.
1. Fix FEN tag in the header of a game. Now the FEN has hmvc and fmvn.
Sample.
[Event "?"]
[Site "?"]
[Date "2015.09.25"]
[Round "1"]
[White "D2015.1.262"]
[Black "Gaviota v1.0 64bit"]
[Result "1-0"]
[FEN "2rq1rk1/pb1n2pp/1pp1p3/3pPp2/2PP1PPb/P3B2P/1PQ3B1/R2R1NK1 b - - 0 1"]
[PlyCount "109"]
[SetUp "1"]
[Termination "adjudication"]
[TimeControl "60+0.1"]

1... fxg4 {-0.33/11 1.3s} 2. hxg4 {-0.02/13 2.1s} Qe7 {-0.36/11 1.7s}
3. Qe2 {-0.18/13 5.4s} Ba6 {-0.35/10 1.2s} 4. g5 {+1.21/13 0.85s}
Bxg5 {-1.39/13 1.2s} 5. fxg5 {+1.06/15 1.8s} Bxc4 {-1.45/14 1.2s}
2. (windows) Make sure engines are killed along with CuteChess.
Now even with Control+break (was only control+C) keys to interrupt the running tour, engines are exited/quited/killed along with cutechess.

Be aware the version number is still 0.7.2 when you send the command cutechess-cli -version.

I have not encountered problems with this update version so far. It is encourage to report problems, warning messages and others if ever you encounter one. This would help the developers to further improve the tool.

Download:
http://www.mediafire.com/download/ir2as ... pt2015.rar

For other required dll files, go to the official download link,
https://github.com/cutechess/cutechess
and download 0.7.2.
PaulieD
Posts: 213
Joined: Tue Jun 25, 2013 8:19 pm

Re: cutechess-cli 0.7.2 - 24sept2015

Post by PaulieD »

Is it possible for someone to make this compatible with CuGen?
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.7.2 - 24sept2015

Post by Ferdy »

PaulieD wrote:Is it possible for someone to make this compatible with CuGen?
Try to contact the author of CuGen.
User avatar
Ozymandias
Posts: 1535
Joined: Sun Oct 25, 2009 2:30 am

Re: cutechess-cli 0.7.2 - 24sept2015

Post by Ozymandias »

Ferdy wrote:2. (windows) Make sure engines are killed along with CuteChess.
Now even with Control+break (was only control+C) keys to interrupt the running tour, engines are exited/quited/killed along with cutechess.
Will it also completely terminate processes still hogging memory? I'm using 0.7.1 and the only tournament that really works is "match". As soon as you have 3 or more engines, both gauntlet and round-robin will ignore the "restart" parameter; no matter what option you specify, engines will be restarted, and the "terminated" processes will still be using memory:

- a few dozens will still be requiring the full 100% they peaked at (Working set as reported by Resource Monitor)
- the rest will occupy a modicum of 20K, which amounts to quite a bit when they number in the thousands (RAMMap)

In the end, you run out of memory and the tournament is exited abruptly.