dje-dev / Ceres

Ceres - an MCTS chess engine for research and recreation
GNU General Public License v3.0
153 stars 23 forks source link

Is it possible to tolerate Chess 960 format castling moves in UCI? #15

Closed rooklift closed 3 years ago

rooklift commented 3 years ago

I've not built Ceres but I hear reports that castling causes problems for Nibbler.

Nibbler currently always runs in Chess 960 mode and so (for normal chess) sends castling moves as one of:

Would it be possible / easy to accept these as valid castling moves? Basically, check if the relevant king is present on the source square, then treat it as if e1g1 or whatever had come...

dje-dev commented 3 years ago

Test UCI commands now seem supported.

position fen r3k2r/8/8/8/8/8/8/R3K2R w KQkq - 4 1 moves e1h1
position fen r3k2r/8/8/8/8/8/8/R3K2R w KQkq - 4 1 moves e1a1
position fen r3k2r/8/8/8/8/8/8/R3K2R b KQkq - 4 1 moves e8h8
position fen r3k2r/8/8/8/8/8/8/R3K2R b KQkq - 4 1 moves e8a8