Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def toggleValue():
|
|
| 28 |
if st.session_state.Value == "X":
|
| 29 |
st.session_state.Value = "O"
|
| 30 |
else:
|
| 31 |
-
st.session_state.Value
|
| 32 |
|
| 33 |
def display_board(num):
|
| 34 |
col1, col2, col3 = st.columns(3)
|
|
@@ -53,7 +53,6 @@ def display_board(num):
|
|
| 53 |
st.text(st.session_state.gridNumbers[7])
|
| 54 |
with col9:
|
| 55 |
st.text(st.session_state.gridNumbers[8])
|
| 56 |
-
|
| 57 |
toggleValue()
|
| 58 |
|
| 59 |
def reset_game():
|
|
|
|
| 28 |
if st.session_state.Value == "X":
|
| 29 |
st.session_state.Value = "O"
|
| 30 |
else:
|
| 31 |
+
st.session_state.Value = "X"
|
| 32 |
|
| 33 |
def display_board(num):
|
| 34 |
col1, col2, col3 = st.columns(3)
|
|
|
|
| 53 |
st.text(st.session_state.gridNumbers[7])
|
| 54 |
with col9:
|
| 55 |
st.text(st.session_state.gridNumbers[8])
|
|
|
|
| 56 |
toggleValue()
|
| 57 |
|
| 58 |
def reset_game():
|