Mattheo
2 years ago
2 changed files with 15 additions and 3 deletions
@ -1,4 +1,13 @@ |
|||
import bataille.py |
|||
|
|||
def bataille(): |
|||
tour = 1 |
|||
if tour = 1: |
|||
tour = 2 |
|||
jeux = Jeux() |
|||
carte_j1, carte_j2 = jeux.depiler() |
|||
while not carte_j1.est_vide() and not carte_j2.est_vide(): |
|||
if tour == 1: |
|||
tour = 2 |
|||
valeur_carte_j1 = carte_j1.depiler() |
|||
valeur_carte_j2 = carte_j2.depiler() |
|||
carte_j1.compare(carte_j2) |
|||
|
Loading…
Reference in new issue