Spaces:
Runtime error
Runtime error
strip
Browse files- src/play_interface.py +1 -1
src/play_interface.py
CHANGED
|
@@ -79,7 +79,7 @@ def try_play_move(
|
|
| 79 |
gr.Warning("The game is already over")
|
| 80 |
return *render_board(current_board), current_board
|
| 81 |
try:
|
| 82 |
-
current_board = play_user_move(move_to_play, current_board)
|
| 83 |
if current_board.is_game_over():
|
| 84 |
gr.Info(f"Congratulations, {username}!")
|
| 85 |
with wandb.init(project="gpt2-stockfish-debug", entity="yp-edu") as run:
|
|
|
|
| 79 |
gr.Warning("The game is already over")
|
| 80 |
return *render_board(current_board), current_board
|
| 81 |
try:
|
| 82 |
+
current_board = play_user_move(move_to_play.strip(), current_board)
|
| 83 |
if current_board.is_game_over():
|
| 84 |
gr.Info(f"Congratulations, {username}!")
|
| 85 |
with wandb.init(project="gpt2-stockfish-debug", entity="yp-edu") as run:
|