Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import streamlit as st
|
|
| 3 |
#UIApp starts here
|
| 4 |
st.set_page_config(page_title="Python - Tic Tac Toe", page_icon=":python:")
|
| 5 |
st.header("Python - Tic Tac Toe")
|
| 6 |
-
st.text("Legal Numbers: " + "".join(str(legal_numbers)))
|
| 7 |
|
| 8 |
#Globals
|
| 9 |
legal_numbers = [1,2,3,4,5,6,7,8,9]
|
|
@@ -13,6 +12,7 @@ col7, col8, col9 = st.columns(3)
|
|
| 13 |
|
| 14 |
def get_userInput():
|
| 15 |
input = st.text_input("Enter a number between 1 to 9: ", key="input")
|
|
|
|
| 16 |
return input
|
| 17 |
|
| 18 |
def validate_userInput(user_input):
|
|
@@ -46,7 +46,6 @@ def reset_legalNumbers():
|
|
| 46 |
|
| 47 |
#def update_legalNumbers():
|
| 48 |
|
| 49 |
-
set_page_config()
|
| 50 |
user_input=get_userInput()
|
| 51 |
display_board()
|
| 52 |
|
|
|
|
| 3 |
#UIApp starts here
|
| 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]
|
|
|
|
| 12 |
|
| 13 |
def get_userInput():
|
| 14 |
input = st.text_input("Enter a number between 1 to 9: ", key="input")
|
| 15 |
+
st.text("Legal Numbers: " + "".join(str(legal_numbers)))
|
| 16 |
return input
|
| 17 |
|
| 18 |
def validate_userInput(user_input):
|
|
|
|
| 46 |
|
| 47 |
#def update_legalNumbers():
|
| 48 |
|
|
|
|
| 49 |
user_input=get_userInput()
|
| 50 |
display_board()
|
| 51 |
|