txlyre 20 hours ago
parent
commit
016b6f5c7f
2 changed files with 4 additions and 3 deletions
  1. 2 2
      chess0.py
  2. 2 1
      commands.py

+ 2 - 2
chess0.py

@@ -15,8 +15,8 @@ class IllegalMove(Exception):
 
 
 
 
 class MyBoard(chess.Board):
 class MyBoard(chess.Board):
-    def __init__(self):
-        chess.Board.__init__(self)
+    def __init__(self, fen=chess.STARTING_FEN, chess960=False):
+        chess.Board.__init__(self, fen=fen, chess960=chess960)
 
 
         self.captured_black = []
         self.captured_black = []
         self.captured_white = []
         self.captured_white = []

+ 2 - 1
commands.py

@@ -824,7 +824,8 @@ CHESS_ALIASES = {
     "u": "undo",
     "u": "undo",
     "s": "skip",
     "s": "skip",
     "p": "pass",
     "p": "pass",
-    "ms": "moves"
+    "ms": "moves",
+    "i": "moves",
 }
 }