Update pages/ex6: Pedra-paper-tisora.py
Browse files
pages/ex6: Pedra-paper-tisora.py
CHANGED
|
@@ -5,11 +5,11 @@ n_tirades=0
|
|
| 5 |
jugador=""
|
| 6 |
ordinador=""
|
| 7 |
|
| 8 |
-
|
| 9 |
jugador="Paper"
|
| 10 |
-
|
| 11 |
jugador="Pedra"
|
| 12 |
-
|
| 13 |
jugador="Tisora"
|
| 14 |
|
| 15 |
while n_tirades==1:
|
|
|
|
| 5 |
jugador=""
|
| 6 |
ordinador=""
|
| 7 |
|
| 8 |
+
if st.button("Paper"):
|
| 9 |
jugador="Paper"
|
| 10 |
+
if st.button("Pedra"):
|
| 11 |
jugador="Pedra"
|
| 12 |
+
if st.button("Tisora"):
|
| 13 |
jugador="Tisora"
|
| 14 |
|
| 15 |
while n_tirades==1:
|