Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ if "Value" not in st.session_state:
|
|
| 10 |
|
| 11 |
|
| 12 |
def get_userInput():
|
| 13 |
-
input = st.text_input("Enter a number between 1 to 9
|
| 14 |
return input
|
| 15 |
|
| 16 |
def validate_userInput(user_input):
|
|
@@ -101,7 +101,8 @@ st.header("Python - Tic Tac Toe")
|
|
| 101 |
display_guide()
|
| 102 |
|
| 103 |
user_input=get_userInput()
|
| 104 |
-
|
|
|
|
| 105 |
|
| 106 |
#UI Buttons
|
| 107 |
submit=st.button('Submit')
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
def get_userInput():
|
| 13 |
+
input = st.text_input("Enter a number between 1 to 9 to mark " + st.session_state.Value, key="input")
|
| 14 |
return input
|
| 15 |
|
| 16 |
def validate_userInput(user_input):
|
|
|
|
| 101 |
display_guide()
|
| 102 |
|
| 103 |
user_input=get_userInput()
|
| 104 |
+
update_legalNumbers(user_input)
|
| 105 |
+
display_board()
|
| 106 |
|
| 107 |
#UI Buttons
|
| 108 |
submit=st.button('Submit')
|