txlyre 2 月之前
父節點
當前提交
6dd28bf40c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      chess0.py

+ 1 - 1
chess0.py

@@ -104,7 +104,7 @@ class ChessSession:
             except ValueError:
                 raise IllegalMove(moves)
 
-            if moves < 1 or moves > 959:
+            if moves < 0 or moves > 959:
                 raise IllegalMove(moves)
 
             self.board.set_chess960_pos(moves)