Skip to content

Instantly share code, notes, and snippets.

View feyli's full-sized avatar
😬
Struggling

Mathis feyli

😬
Struggling
View GitHub Profile
@feyli
feyli / morpion.py
Last active November 20, 2022 13:50
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])