Spaces:
Build error
Build error
Update app.py
Browse files
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] != " ":
|