Skip to content

Commit

Permalink
Simplify chess960 handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Delorme committed Aug 17, 2022
1 parent d26d2e2 commit 8099b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dumb.d
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Uci {
void position(string line) {
if (findSkip(line, "startpos")) board.set();
else if (findSkip(line, "fen")) board.set(line);
board.chess960 = (board.chess960 || chess960);
board.chess960 = chess960;
if (findSkip(line, "moves")) {
auto words = line.split();
foreach(w ; words) board.update(w.fromPan(board));
Expand Down

0 comments on commit 8099b39

Please sign in to comment.