From 8f3f084b0e1f11aa674e0a7ece1e21f2be4d9aac Mon Sep 17 00:00:00 2001 From: Haffa Bakhouche Date: Mon, 18 Nov 2024 07:17:53 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9finition=20des=20struct=20de=20base=20et?= =?UTF-8?q?=20interfaces=20du=20jeu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeu.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jeu.h b/jeu.h index 6ed1318..ac5a01f 100644 --- a/jeu.h +++ b/jeu.h @@ -1,5 +1,5 @@ -#ifndef JEU_H -#define JEH_H +#ifndef JEU_H_INCLUS +#define JEU_H_INCLUS struct Position { int x; @@ -10,10 +10,10 @@ struct EtatJeu { int tailleGrille; int mode; int tourJoueur; - int phase; /* 0: placement initial, 1: déplacement, 2: blocage */ + int phase; struct Position joueur1; struct Position joueur2; - int** grille; /* 0: libre, 1: joueur1, 2: joueur2, 3: bloqué */ + int** grille; }; struct EtatJeu initialiserJeu(int tailleGrille, int mode); @@ -23,4 +23,4 @@ void afficherVictoire(int gagnant); int estCaseAdjacente(struct Position pos1, struct Position pos2); int peutDeplacer(struct EtatJeu etatJeu, int joueur); -#endif \ No newline at end of file +#endif /* JEU_H_INCLUS */