From 0a3d120919140ae340bc9392150309344db1f2bf Mon Sep 17 00:00:00 2001 From: Lyanis Souidi Date: Sat, 3 Dec 2022 20:08:55 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20l'effacement=20des=20=C3=A9crans?= =?UTF-8?q?=200=20et=201=20lors=20du=20lancement=20de=20la=20partie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index c810cf9..f80ca99 100644 --- a/src/game.c +++ b/src/game.c @@ -20,7 +20,11 @@ int game(int colonnes, int lignes) { int* tab = malloc(sizeof(int) * (colonnes * lignes)); srand(time(NULL)); - EffacerEcran(CouleurParComposante(54, 57, 63)); + for (i = 1; i > -1; i--) { + ChoisirEcran(i); + EffacerEcran(CouleurParComposante(54, 57, 63)); + } + ChoisirCouleurDessin(CouleurParNom("white")); for(i = 0; i < (colonnes * lignes) / 2;) {