Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,16 @@ import streamlit as st
|
|
| 4 |
st.set_page_config(page_title="Python - Tic Tac Toe", page_icon=":python:")
|
| 5 |
st.header("Python - Tic Tac Toe")
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
#Globals
|
| 8 |
legal_numbers = [1,2,3,4,5,6,7,8,9]
|
| 9 |
col1, col2, col3 = st.columns(3)
|
|
@@ -45,16 +55,6 @@ def reset_legalNumbers():
|
|
| 45 |
legal_numbers = [1,2,3,4,5,6,7,8,9]
|
| 46 |
|
| 47 |
#def update_legalNumbers():
|
| 48 |
-
|
| 49 |
-
user_input=get_userInput()
|
| 50 |
-
display_board()
|
| 51 |
-
|
| 52 |
-
#UI Buttons
|
| 53 |
-
submit=st.button('Submit')
|
| 54 |
-
replay=st.button('Replay')
|
| 55 |
-
|
| 56 |
-
#After User Interaction
|
| 57 |
-
response=validate_userInput(user_input)
|
| 58 |
|
| 59 |
#Button functionality
|
| 60 |
if submit:
|
|
|
|
| 4 |
st.set_page_config(page_title="Python - Tic Tac Toe", page_icon=":python:")
|
| 5 |
st.header("Python - Tic Tac Toe")
|
| 6 |
|
| 7 |
+
user_input=get_userInput()
|
| 8 |
+
display_board()
|
| 9 |
+
|
| 10 |
+
#UI Buttons
|
| 11 |
+
submit=st.button('Submit')
|
| 12 |
+
replay=st.button('Replay')
|
| 13 |
+
|
| 14 |
+
#After User Interaction
|
| 15 |
+
response=validate_userInput(user_input)
|
| 16 |
+
|
| 17 |
#Globals
|
| 18 |
legal_numbers = [1,2,3,4,5,6,7,8,9]
|
| 19 |
col1, col2, col3 = st.columns(3)
|
|
|
|
| 55 |
legal_numbers = [1,2,3,4,5,6,7,8,9]
|
| 56 |
|
| 57 |
#def update_legalNumbers():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
#Button functionality
|
| 60 |
if submit:
|