Update pages/ex6: Pedra-paper-tisora.py
Browse files
pages/ex6: Pedra-paper-tisora.py
CHANGED
|
@@ -5,14 +5,15 @@ n_tirades=0
|
|
| 5 |
jugador=""
|
| 6 |
ordinador=""
|
| 7 |
|
| 8 |
-
|
| 9 |
-
if st.button("Paper"):
|
| 10 |
jugador="Paper"
|
| 11 |
if st.button("Pedra"):
|
| 12 |
jugador="Pedra"
|
| 13 |
if st.button("Tisora"):
|
| 14 |
jugador="Tisora"
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
x=["Paper","Tisora","Pedra"]
|
| 17 |
ordinador=choice(x)
|
| 18 |
st.write("Ordinador:", ordinador)
|
|
|
|
| 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:
|
| 16 |
+
|
| 17 |
x=["Paper","Tisora","Pedra"]
|
| 18 |
ordinador=choice(x)
|
| 19 |
st.write("Ordinador:", ordinador)
|