cutechess-cli 0.8.0 released

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.8.0 released

Post by Ferdy »

SzG wrote:Hi Ferdy,

I guess you shall set the suite type to epd somehow. Default suite type is pgn.
Yeah I did it here.

Code: Select all

-openings file=%startfile% order=random format=epd
User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 7:45 pm
Location: Finland

Re: cutechess-cli 0.8.0 released

Post by ilari »

Ferdy wrote:I tried to run atomic variant game match using epd as opening file. There was a warning.

Code: Select all

Warning: The opening suite is incompatible with the current chess variant
The game continues from start position.
Damn, that is clearly a regression caused by this commit: https://github.com/cutechess/cutechess/ ... 2306127f7f

Maybe I should remove the variant check completely and only return an error if the starting FEN and/or the opening moves aren't compatible with the variant. I'll write a fix later today.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.8.0 released

Post by Ferdy »

ilari wrote:
Ferdy wrote:I tried to run atomic variant game match using epd as opening file. There was a warning.

Code: Select all

Warning: The opening suite is incompatible with the current chess variant
The game continues from start position.
Damn, that is clearly a regression caused by this commit: https://github.com/cutechess/cutechess/ ... 2306127f7f

Maybe I should remove the variant check completely and only return an error if the starting FEN and/or the opening moves aren't compatible with the variant. I'll write a fix later today.
Be aware of crazyhouse epd.

Winboard:

Code: Select all

q1Q~N4/k2R4/ppppP1pb/3B4/3P4/3p1P2/PP4PP/R1B2RK1[PPNNNBrq] b - -
The on-hand pieces are in

Code: Select all

[PPNNNBrq]
The promoted pawn to queen is

Code: Select all

Q~
found in c8 square. This is the same as in Lichess server.

Lichess server:

Code: Select all

q1Q~N4/k2R4/ppppP1pb/3B4/3P4/3p1P2/PP4PP/R1B2RK1/PPNNNBrq b - -
The on-hand pieces are in

Code: Select all

/PPNNNBrq
could be mistaken as new rank.

But perhaps just use the winboard format where Sjaak, TJChess and Imortal have supported.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.8.0 released

Post by Ferdy »

Support for uci engines that plays a variant.

Atomkraft is an engine that can play atomic variant. It is based on stockfish 2.1.1 which can be found in,
https://github.com/golmman/atomkraft

Jim windows compilation:
http://www.chess2u.com/t9565-atomkraft

I am developing an atomic xboard engine and would like to have atomkraft as sparring partner.

It would be nice if you can support this uci engine.

From uci command.

Code: Select all

...
option name UCI_Chess960 type check default false
...
But this engine would play atomic by default.

UCI_Atomic option could be used to inform cutechess that the game will be played under that variant for uci engines.
User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 7:45 pm
Location: Finland

Re: cutechess-cli 0.8.0 released

Post by ilari »

I've fixed the bug. Will update cutechess-cli release in the next few days.
Ferdy wrote:Be aware of crazyhouse epd.

Winboard:

Code: Select all

q1Q~N4/k2R4/ppppP1pb/3B4/3P4/3p1P2/PP4PP/R1B2RK1[PPNNNBrq] b - -
The on-hand pieces are in

Code: Select all

[PPNNNBrq]
The promoted pawn to queen is

Code: Select all

Q~
found in c8 square. This is the same as in Lichess server.

Lichess server:

Code: Select all

q1Q~N4/k2R4/ppppP1pb/3B4/3P4/3p1P2/PP4PP/R1B2RK1/PPNNNBrq b - -
The on-hand pieces are in

Code: Select all

/PPNNNBrq
could be mistaken as new rank.

But perhaps just use the winboard format where Sjaak, TJChess and Imortal have supported.
Cutechess supports Crazyhouse FENs like this:

Code: Select all

rnbqkbnr/pppp2pp/8/4p3/8/6P1/PPPPPP1P/RNBQKB1R w Pn KQkq - 0 4
It was such a long time ago when I implemented crazyhouse so I don't know how I came up with that. But I'll support whatever Winboard supports in the future.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.8.0 released

Post by Ferdy »

ilari wrote:I've fixed the bug. Will update cutechess-cli release in the next few days.

Cutechess supports Crazyhouse FENs like this:

Code: Select all

rnbqkbnr/pppp2pp/8/4p3/8/6P1/PPPPPP1P/RNBQKB1R w Pn KQkq - 0 4
Thanks, and it is good to know the zh fen recognized by cutechess, would stay away from zh opening epd use then at this time.
User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 7:45 pm
Location: Finland

Re: cutechess-cli 0.8.0 released

Post by ilari »

Ferdy wrote:I am developing an atomic xboard engine and would like to have atomkraft as sparring partner.

It would be nice if you can support this uci engine.

From uci command.

Code: Select all

...
option name UCI_Chess960 type check default false
...
But this engine would play atomic by default.

UCI_Atomic option could be used to inform cutechess that the game will be played under that variant for uci engines.
CuteChess already has this code in uciengine.cpp:

Code: Select all

static QString variantFromUci(const QString& str)
{
	if &#40;str.size&#40;) < 5 || !str.startsWith&#40;"UCI_"))
		return QString&#40;);

	QString variant;

	if &#40;str == "UCI_Chess960")
		variant = "fischerandom";
	else
		variant = str.mid&#40;4&#41;.toLower&#40;);

	if (!Chess&#58;&#58;BoardFactory&#58;&#58;variants&#40;).contains&#40;variant&#41;)
		return QString&#40;);
	return variant;
&#125;
So UCI_Atomic should work.
User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 7:45 pm
Location: Finland

Re: cutechess-cli 0.8.0 released

Post by ilari »

Cutechess-cli is now at version 0.8.2: https://github.com/cutechess/cutechess/ ... /cli-0.8.2

This is a good update for those users that play non-standard variants like Crazyhouse.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.8.0 released

Post by Ferdy »

ilari wrote:
Ferdy wrote:I am developing an atomic xboard engine and would like to have atomkraft as sparring partner.

It would be nice if you can support this uci engine.

From uci command.

Code: Select all

...
option name UCI_Chess960 type check default false
...
But this engine would play atomic by default.

UCI_Atomic option could be used to inform cutechess that the game will be played under that variant for uci engines.
CuteChess already has this code in uciengine.cpp:

Code: Select all

static QString variantFromUci&#40;const QString& str&#41;
&#123;
	if &#40;str.size&#40;) < 5 || !str.startsWith&#40;"UCI_"))
		return QString&#40;);

	QString variant;

	if &#40;str == "UCI_Chess960")
		variant = "fischerandom";
	else
		variant = str.mid&#40;4&#41;.toLower&#40;);

	if (!Chess&#58;&#58;BoardFactory&#58;&#58;variants&#40;).contains&#40;variant&#41;)
		return QString&#40;);
	return variant;
&#125;
So UCI_Atomic should work.
Thanks it actually works even without UCI_Atomic.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli 0.8.0 released

Post by Ferdy »

ilari wrote:Cutechess-cli is now at version 0.8.2: https://github.com/cutechess/cutechess/ ... /cli-0.8.2

This is a good update for those users that play non-standard variants like Crazyhouse.
Nice thanks for the update.