This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def afficher_tableau(tableau): | |
for i in range(len(tableau)): | |
print("|", tableau[i][0] or "_", "|", tableau[i][1] or "_", "|", tableau[i][2] or "_", "|") | |
def plateau_plein(tableau): | |
return not any([any([not case for case in ligne]) for ligne in tableau]) |