Page 1 of 1

Atomic Opening Book

PostPosted: 26 Sep 2009, 09:59
by Aiorla
Hi Winboard Forum,

Here goes my first topic and my first question.
I play atomic chess in Winboard and I want to make a book with a pgn. I can't use polyglot because it says illegal move at line x, column x and it doesn't make the book. What can I do? Is there a way to make polyglot create the book or I have to use other program?

Thanks in advance,

Aitor

Re: Atomic Opening Book

PostPosted: 26 Sep 2009, 11:02
by H.G.Muller
I am afraid Polyglot does not support Atomic Chess. Its idea of a variant is Chess960! :D

I have no idea if there are bookmaking programs that do support Atomic.

Re: Atomic Opening Book

PostPosted: 26 Sep 2009, 11:18
by Michel
I can't use polyglot because it says illegal move


I am afraid PG does not know the rules of atomic. So it cannot make a book.

Unless I overlook something I think a PG book could support atomic.

Re: Atomic Opening Book

PostPosted: 26 Sep 2009, 11:37
by H.G.Muller
A PG book could support atomic, as Atomic positions are indistingishable from Normal positions. (At least if you ignore legality of the position, which Polyglot format does. You could not have Nalimov tablebases for Atomic, though, as Nalimov format does not allow the Kings to stand next to each other, while in Atomic this is not only perfectly legal, but often the only way to salvage a draw.)

But for this reason it would be quite confusing to have such a book, as it could also be probed in Normal games (or Suicide, Losers, 3Check), and suggest moves that might be disastrously wrong.

I guess I should change the book-probing code to XOR in a key that depends on the current variant, to prevent one variant from using a GUI book written for another variant that shares positions, but has different rules. For Chess960 this variant key could be 0, as identical Normal and Chess960 positions are indeed fully equivalent. (In other words, Chess960 is not really a variant, it is an extension.)

I generalized PG format such that it supports books for all variants supported by WinBoard. For the extra piece types and board squares it uses rotated versions of the standard keys (in steps of 8 bits), so that there is no problem on boards of upto 128 squares with upto 24 piece types. And I indeed do have a Polyglot book for Xiangqi. (Did not make it with Polyglot, though! :D ) This did require a different coding scheme for the moves, though. I reqisitioned the extra code space occupied by the promotion piece for this.