Chess_update
This commit is contained in:
@@ -682,9 +682,12 @@ while board.playing:
|
|||||||
print(f"{COL.RESET}\n ---- CHESS ---- Turn: {turn}")
|
print(f"{COL.RESET}\n ---- CHESS ---- Turn: {turn}")
|
||||||
board.print_board()
|
board.print_board()
|
||||||
move = input(text)
|
move = input(text)
|
||||||
|
if move == "exit":
|
||||||
|
break
|
||||||
if len(move) !=5 or not board.encode_and_make_move(move):
|
if len(move) !=5 or not board.encode_and_make_move(move):
|
||||||
text = "Move not possible new move: "
|
text = "Move not possible new move: "
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
turn += 1
|
turn += 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user