Skip to content

Commit ac20315

Browse files
author
Tage Johansson
committed
Fix bug where moves like nbd2 incorrectly raised an assertian.
1 parent 11fb014 commit ac20315

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chess_cli/fast_move_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def exec_cmd(self, prompt: str) -> None:
3131
if match := SAN_REGEX.fullmatch(prompt):
3232
# Solve ambiguities with the b-pawn and a bishop.
3333
piece, from_file = match[1], match[2]
34-
assert piece == "b" or from_file != "b"
34+
assert piece or from_file != "b"
3535
if piece == "b" and not from_file:
3636
try:
3737
move = board.parse_san(prompt)

0 commit comments

Comments
 (0)