awacke1 commited on
Commit
4b0e879
·
1 Parent(s): 25ff40c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def multiplayer_game():
42
  for i in range(9):
43
  render_game_state()
44
  st.write("Player ", player, " turn. Choose a square (1-9).")
45
- chosen_square = st.number_input("", min_value=1, max_value=9)
46
  row = (chosen_square - 1) // 3
47
  col = (chosen_square - 1) % 3
48
  if game_state[row][col] != " ":
 
42
  for i in range(9):
43
  render_game_state()
44
  st.write("Player ", player, " turn. Choose a square (1-9).")
45
+ chosen_square = st.number_input("", min_value=1, max_value=9, key=f"number_input_{i}")
46
  row = (chosen_square - 1) // 3
47
  col = (chosen_square - 1) % 3
48
  if game_state[row][col] != " ":