Bonjour je suis en première générale SPE NSI je voudrais savoir si il serais possible de m'aider Je doit présenter en détail cette fonction (phrase) def coup_ga
Informatique
lulub1
Question
Bonjour
je suis en première générale SPE NSI je voudrais savoir si il serais possible de m'aider Je doit présenter en détail cette fonction (phrase)
def coup_gagnant_horizontal (matrice, joueur).
for i in range (NB_LIGNE) for j in range (NB_COLONNE - 3):
If matrice[i][j] and matrice [i][j+1] and matrice[][] + 2] and matrice [1][j+ 3] == joueur: return True
pouvez vous m'aider ? Merci d'avance cordialement
je suis en première générale SPE NSI je voudrais savoir si il serais possible de m'aider Je doit présenter en détail cette fonction (phrase)
def coup_gagnant_horizontal (matrice, joueur).
for i in range (NB_LIGNE) for j in range (NB_COLONNE - 3):
If matrice[i][j] and matrice [i][j+1] and matrice[][] + 2] and matrice [1][j+ 3] == joueur: return True
pouvez vous m'aider ? Merci d'avance cordialement