diff --git a/chess/chess_64.py b/chess/chess_64.py index 0df1bd3..99ee07c 100644 --- a/chess/chess_64.py +++ b/chess/chess_64.py @@ -682,9 +682,12 @@ while board.playing: print(f"{COL.RESET}\n ---- CHESS ---- Turn: {turn}") board.print_board() move = input(text) + if move == "exit": + break if len(move) !=5 or not board.encode_and_make_move(move): text = "Move not possible new move: " continue + turn += 1