aashwinik commited on
Commit
3f65a39
·
verified ·
1 Parent(s): 1e3d902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -30,11 +30,11 @@ def toggleValue():
30
  else:
31
  st.session_state.Value == "X"
32
 
33
- def display_board():
34
  col1, col2, col3 = st.columns(3)
35
  col4, col5, col6 = st.columns(3)
36
  col7, col8, col9 = st.columns(3)
37
-
38
  with col1:
39
  st.text(st.session_state.gridNumbers[0])
40
  with col2:
@@ -70,7 +70,6 @@ st.set_page_config(page_title="Python - Tic Tac Toe", page_icon=":python:")
70
  st.header("Python - Tic Tac Toe")
71
 
72
  user_input=get_userInput()
73
- display_board()
74
 
75
  #UI Buttons
76
  submit=st.button('Submit')
 
30
  else:
31
  st.session_state.Value == "X"
32
 
33
+ def display_board(user_input):
34
  col1, col2, col3 = st.columns(3)
35
  col4, col5, col6 = st.columns(3)
36
  col7, col8, col9 = st.columns(3)
37
+ st.session_state.gridNumbers[int(num)-1]= st.session_state.Value
38
  with col1:
39
  st.text(st.session_state.gridNumbers[0])
40
  with col2:
 
70
  st.header("Python - Tic Tac Toe")
71
 
72
  user_input=get_userInput()
 
73
 
74
  #UI Buttons
75
  submit=st.button('Submit')