From 8099b3939130b75fd34c43367487e9f0ff84c32c Mon Sep 17 00:00:00 2001 From: Richard Delorme Date: Wed, 17 Aug 2022 10:49:00 +0200 Subject: [PATCH] Simplify chess960 handling --- src/dumb.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dumb.d b/src/dumb.d index 45ed392..0906ca1 100644 --- a/src/dumb.d +++ b/src/dumb.d @@ -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));