aashwinik commited on
Commit
d13fa6d
·
verified ·
1 Parent(s): e10d2a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -7
app.py CHANGED
@@ -16,32 +16,43 @@ def validate_userInput(user_input):
16
 
17
  def display_board():
18
  col1, col2, col3 = st.columns(3)
19
-
 
20
  with col1:
21
  st.text(" X ")
22
-
23
  with col2:
24
  st.text(" O ")
25
-
26
  with col3:
27
  st.text(" ... ")
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  def reset_legalNumbers():
30
  legal_numbers = [1,2,3,4,5,6,7,8,9]
31
 
32
- #def update_legalNumbers():
33
-
34
 
35
 
36
  #UIApp starts here
37
  st.set_page_config(page_title="Python - Tic Tac Toe", page_icon=":python:")
38
  st.header("Python - Tic Tac Toe")
39
- st.text("Legal Numbers: " + " ".join(str(legal_numbers)))
40
- display_board()
41
 
42
  user_input=get_userInput()
43
  response=validate_userInput(user_input)
44
 
 
 
45
  #UI Buttons
46
  submit=st.button('Submit')
47
  replay=st.button('Replay')
 
16
 
17
  def display_board():
18
  col1, col2, col3 = st.columns(3)
19
+ col4, col5, col6 = st.columns(3)
20
+ col7, col8, col9 = st.columns(3)
21
  with col1:
22
  st.text(" X ")
 
23
  with col2:
24
  st.text(" O ")
 
25
  with col3:
26
  st.text(" ... ")
27
+ with col4:
28
+ st.text(" X ")
29
+ with col5:
30
+ st.text(" O ")
31
+ with col6:
32
+ st.text(" ... ")
33
+ with col7:
34
+ st.text(" X ")
35
+ with col8:
36
+ st.text(" O ")
37
+ with col9:
38
+ st.text(" ... ")
39
 
40
  def reset_legalNumbers():
41
  legal_numbers = [1,2,3,4,5,6,7,8,9]
42
 
43
+ #def update_legalNumbers():
 
44
 
45
 
46
  #UIApp starts here
47
  st.set_page_config(page_title="Python - Tic Tac Toe", page_icon=":python:")
48
  st.header("Python - Tic Tac Toe")
49
+ st.text("Legal Numbers: " + "".join(str(legal_numbers)))
 
50
 
51
  user_input=get_userInput()
52
  response=validate_userInput(user_input)
53
 
54
+ display_board()
55
+
56
  #UI Buttons
57
  submit=st.button('Submit')
58
  replay=st.button('Replay')