bvilanova commited on
Commit
08df8e2
·
verified ·
1 Parent(s): 7b07f99

Update pages/ex6: Pedra-paper-tisora.py

Browse files
Files changed (1) hide show
  1. pages/ex6: Pedra-paper-tisora.py +4 -3
pages/ex6: Pedra-paper-tisora.py CHANGED
@@ -5,14 +5,15 @@ n_tirades=0
5
  jugador=""
6
  ordinador=""
7
 
8
- while n_tirades==1:
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)