Spaces:
Sleeping
Sleeping
Button changes
Browse files
app.py
CHANGED
@@ -299,7 +299,7 @@ if st.session_state.actions[-1] == 'cue':
|
|
299 |
|
300 |
while guessed == False:
|
301 |
col1, col2, col3, col4 = st.columns(4)
|
302 |
-
col5, col6 = st.columns(
|
303 |
|
304 |
with col1:
|
305 |
b1 = st.button("Next letter", key="1")
|
@@ -323,6 +323,8 @@ if st.session_state.actions[-1] == 'cue':
|
|
323 |
with col6:
|
324 |
b6 = st.button("Exit", key="5", type='primary')
|
325 |
|
|
|
|
|
326 |
|
327 |
if b1:
|
328 |
st.session_state.counters["letter_count"] += 1
|
@@ -368,7 +370,7 @@ if st.session_state.actions[-1] == 'cue':
|
|
368 |
elif b6:
|
369 |
write_bot("I am sorry I couldn't help you this time. See you soon!")
|
370 |
st.session_state.actions.append('cue')
|
371 |
-
|
372 |
if new:
|
373 |
write_bot("Please describe your word!")
|
374 |
break
|
|
|
299 |
|
300 |
while guessed == False:
|
301 |
col1, col2, col3, col4 = st.columns(4)
|
302 |
+
col5, col6, col7 = st.columns(3)
|
303 |
|
304 |
with col1:
|
305 |
b1 = st.button("Next letter", key="1")
|
|
|
323 |
with col6:
|
324 |
b6 = st.button("Exit", key="5", type='primary')
|
325 |
|
326 |
+
with col7:
|
327 |
+
new = st.button('Play again', key=64)
|
328 |
|
329 |
if b1:
|
330 |
st.session_state.counters["letter_count"] += 1
|
|
|
370 |
elif b6:
|
371 |
write_bot("I am sorry I couldn't help you this time. See you soon!")
|
372 |
st.session_state.actions.append('cue')
|
373 |
+
|
374 |
if new:
|
375 |
write_bot("Please describe your word!")
|
376 |
break
|