FRC / Chess960 -- Some Lessons I Learned

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
D Sceviour
Posts: 463
Joined: Mon Jul 20, 2015 3:06 pm
Contact:

Re: FRC / Chess960 -- Some Lessons I Learned

Post by D Sceviour » Thu Nov 14, 2019 4:19 pm

AndrewGrant wrote:
Sat Jun 22, 2019 2:34 pm
In this process I think I came across the answer to the question "Why does Stockfish encode castle moves as King captures Rook".
One reason for encoding KxR castling may be that it follows the polyglot opening book format for castling. Other than that, there may be no advantage to use a KxR format for the internal engine design. Locating the rooks is not a problem if done at the root.

It is interesting that polyglot foresaw the possibility of random castling. Has anyone started a polyglot book collection for FRC/960?

User avatar
xr_a_y
Posts: 778
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: FRC / Chess960 -- Some Lessons I Learned

Post by xr_a_y » Sun Dec 01, 2019 5:48 pm

I'm struggling with FRC also in Minic this week-end ...

I've just discovered that cutechess in UCI mode can send "moves" command with both O-O style notation and "king takes rook" notation (f8d8 in this case).

Code: Select all

Received command : position fen bbnrnkqr/pppppppp/8/8/8/8/PPPPPPPP/BBNRNKQR w HDhd - 0 1 moves c2c4 f7f6 b2b3 c7c5 b1e4 e8c7 c1d3 d7d5 c4d5 b7b6 f2f3 c7d5 g1f2 c8d6 O-O d6e4 f3e4 d5c7 a1e5 g8e6 f2g3 f8d8 
Here Minic was playing white, versus komodo10, so I suppose that Komodo sent the castling as f8d8 and cutechess does not convert it to more standard castling ...

Of course I can handle that in Minic but does someone already had this issue with cutechess ?

MikeB
Posts: 3539
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: FRC / Chess960 -- Some Lessons I Learned

Post by MikeB » Sun Dec 01, 2019 10:57 pm

xr_a_y wrote:
Sun Dec 01, 2019 5:48 pm
I'm struggling with FRC also in Minic this week-end ...

I've just discovered that cutechess in UCI mode can send "moves" command with both O-O style notation and "king takes rook" notation (f8d8 in this case).

Code: Select all

Received command : position fen bbnrnkqr/pppppppp/8/8/8/8/PPPPPPPP/BBNRNKQR w HDhd - 0 1 moves c2c4 f7f6 b2b3 c7c5 b1e4 e8c7 c1d3 d7d5 c4d5 b7b6 f2f3 c7d5 g1f2 c8d6 O-O d6e4 f3e4 d5c7 a1e5 g8e6 f2g3 f8d8 
Here Minic was playing white, versus komodo10, so I suppose that Komodo sent the castling as f8d8 and cutechess does not convert it to more standard castling ...

Of course I can handle that in Minic but does someone already had this issue with cutechess ?
The UCI standard for castling in FRC is "king takes rook" - which is what Komodo sent. I'm surprised cutechess will have an issue with that. Maybe there is a newer version or chess960 option?

User avatar
xr_a_y
Posts: 778
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: FRC / Chess960 -- Some Lessons I Learned

Post by xr_a_y » Mon Dec 02, 2019 5:44 am

MikeB wrote:
Sun Dec 01, 2019 10:57 pm
xr_a_y wrote:
Sun Dec 01, 2019 5:48 pm
I'm struggling with FRC also in Minic this week-end ...

I've just discovered that cutechess in UCI mode can send "moves" command with both O-O style notation and "king takes rook" notation (f8d8 in this case).

Code: Select all

Received command : position fen bbnrnkqr/pppppppp/8/8/8/8/PPPPPPPP/BBNRNKQR w HDhd - 0 1 moves c2c4 f7f6 b2b3 c7c5 b1e4 e8c7 c1d3 d7d5 c4d5 b7b6 f2f3 c7d5 g1f2 c8d6 O-O d6e4 f3e4 d5c7 a1e5 g8e6 f2g3 f8d8 
Here Minic was playing white, versus komodo10, so I suppose that Komodo sent the castling as f8d8 and cutechess does not convert it to more standard castling ...

Of course I can handle that in Minic but does someone already had this issue with cutechess ?
The UCI standard for castling in FRC is "king takes rook" - which is what Komodo sent. I'm surprised cutechess will have an issue with that. Maybe there is a newer version or chess960 option?
Ok, thanks, so I will update Minic so it sends king takes rook also.

MikeB
Posts: 3539
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: FRC / Chess960 -- Some Lessons I Learned

Post by MikeB » Mon Dec 02, 2019 7:53 pm

xr_a_y wrote:
Mon Dec 02, 2019 5:44 am
MikeB wrote:
Sun Dec 01, 2019 10:57 pm
xr_a_y wrote:
Sun Dec 01, 2019 5:48 pm
I'm struggling with FRC also in Minic this week-end ...

I've just discovered that cutechess in UCI mode can send "moves" command with both O-O style notation and "king takes rook" notation (f8d8 in this case).

Code: Select all

Received command : position fen bbnrnkqr/pppppppp/8/8/8/8/PPPPPPPP/BBNRNKQR w HDhd - 0 1 moves c2c4 f7f6 b2b3 c7c5 b1e4 e8c7 c1d3 d7d5 c4d5 b7b6 f2f3 c7d5 g1f2 c8d6 O-O d6e4 f3e4 d5c7 a1e5 g8e6 f2g3 f8d8 
Here Minic was playing white, versus komodo10, so I suppose that Komodo sent the castling as f8d8 and cutechess does not convert it to more standard castling ...

Of course I can handle that in Minic but does someone already had this issue with cutechess ?
The UCI standard for castling in FRC is "king takes rook" - which is what Komodo sent. I'm surprised cutechess will have an issue with that. Maybe there is a newer version or chess960 option?
Ok, thanks, so I will update Minic so it sends king takes rook also.
It appears that cutechess has a flag for FRC.

Post Reply