Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ st.header("Python - Tic Tac Toe")
|
|
| 125 |
display_guide()
|
| 126 |
|
| 127 |
user_input=get_userInput()
|
| 128 |
-
|
| 129 |
#display_board(0)
|
| 130 |
|
| 131 |
#UI Buttons
|
|
@@ -139,7 +139,7 @@ if submit:
|
|
| 139 |
update_legalNumbers(user_input)
|
| 140 |
display_board(user_input)
|
| 141 |
else:
|
| 142 |
-
|
| 143 |
|
| 144 |
if replay:
|
| 145 |
reset_game()
|
|
|
|
| 125 |
display_guide()
|
| 126 |
|
| 127 |
user_input=get_userInput()
|
| 128 |
+
update_legalNumbers(0)
|
| 129 |
#display_board(0)
|
| 130 |
|
| 131 |
#UI Buttons
|
|
|
|
| 139 |
update_legalNumbers(user_input)
|
| 140 |
display_board(user_input)
|
| 141 |
else:
|
| 142 |
+
error_Message("Please enter a digit between 1 to 9.")
|
| 143 |
|
| 144 |
if replay:
|
| 145 |
reset_game()
|