Add Chess960 (FRC) and DFRC support
- castling moves are stored as "king takes own rook" (from = king square, to = castling rook square) - per-colour castling rook squares (Board::castleRook), so DFRC (different back ranks for white/black) works - FEN parsing/printing: KQkq (X-FEN) and Shredder-FEN file letters - Board::CanCastle(): generic castling legality (empty paths, king not attacked, rook x-ray check) - MakeMove handles arbitrary king/rook start squares (king and rook may stay in place or swap through each other's squares) - UCI_Chess960 option: castling printed/parsed as king-takes-rook when on, standard e1g1 style otherwise (both are accepted when parsing) - viri format, perft castle check and castling right updates no longer assume a1/h1/a8/h8
This commit is contained in:
1 parent
e984510434
commit
aa97abaadc
9 files changed
+247
-71
No files matched your search
@@ -49,6 +49,7 @@ You can interact with the engine via these commands:
|
||||
- `position startpos`
|
||||
|
||||
- `ucinewgame` — Resets the position and game state
|
||||
- `setoption name UCI_Chess960 value true` — Enables Chess960 (FRC / DFRC) castling notation (king takes own rook, e.g. `e1h1`). Positions can be given as `position fen [FEN]` with X-FEN or Shredder-FEN castling rights
|
||||
- `quit` — Terminates the program
|
||||
- `go` — Begins search and returns the best move
|
||||
- Parameters (all in **milliseconds**):
|
||||
|
||||
Reference in new issue
Block a user