aicodingfun commited on
Commit
ed44891
·
verified ·
1 Parent(s): 81f9c9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -89,6 +89,8 @@ def play_tic_tac_toe(evt: gr.SelectData, board, game_over):
89
  if game_over:
90
  return draw_board(board), "Game already finished! Please reset to play again.", True
91
 
 
 
92
  r, c = evt.index[1] // 100, evt.index[0] // 100
93
  if board[r][c] != "":
94
  return draw_board(board), "Invalid move! This spot is already taken. Please select an empty square.", False
 
89
  if game_over:
90
  return draw_board(board), "Game already finished! Please reset to play again.", True
91
 
92
+ print(evt)
93
+
94
  r, c = evt.index[1] // 100, evt.index[0] // 100
95
  if board[r][c] != "":
96
  return draw_board(board), "Invalid move! This spot is already taken. Please select an empty square.", False