Spaces:
Sleeping
Sleeping
Commit
•
32884fe
1
Parent(s):
3264e74
Update pages/exercici7.py
Browse files- pages/exercici7.py +1 -0
pages/exercici7.py
CHANGED
@@ -23,6 +23,7 @@ elif jugador < secret:
|
|
23 |
st.stop()
|
24 |
elif jugador == secret:
|
25 |
encertat = True
|
|
|
26 |
st.write(f"Has necessitat {intents} intents d'endevinar el número secret! GAME OVER")
|
27 |
st.stop()
|
28 |
del my_dict['secret']
|
|
|
23 |
st.stop()
|
24 |
elif jugador == secret:
|
25 |
encertat = True
|
26 |
+
intents = st.session_state['intents']
|
27 |
st.write(f"Has necessitat {intents} intents d'endevinar el número secret! GAME OVER")
|
28 |
st.stop()
|
29 |
del my_dict['secret']
|