()
| 71 | |
| 72 | # Fonction pour dessiner les cartes |
| 73 | def draw_cards(): |
| 74 | for idx, pos in enumerate(card_positions): |
| 75 | x, y = pos |
| 76 | if visible[idx]: |
| 77 | pygame.draw.rect(screen, WHITE, pygame.Rect(x, y, CARD_SIZE, CARD_SIZE)) |
| 78 | display_text(cards[idx], font, PINK, x + 10, y + 30) |
| 79 | else: |
| 80 | pygame.draw.rect( |
| 81 | screen, LIGHT_PINK, pygame.Rect(x, y, CARD_SIZE, CARD_SIZE) |
| 82 | ) |
| 83 | pygame.draw.rect(screen, GREY, pygame.Rect(x, y, CARD_SIZE, CARD_SIZE), 5) |
| 84 | |
| 85 | |
| 86 | # Variables du jeu |
no test coverage detected