From 1053ec415d3c8fc08923a157f473364b8df59737 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 22 May 2025 09:05:45 +0200 Subject: Add the logic to check the winner --- src/main/game/game.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/game/game.h') diff --git a/src/main/game/game.h b/src/main/game/game.h index 6b9231c..3d10bea 100644 --- a/src/main/game/game.h +++ b/src/main/game/game.h @@ -20,11 +20,13 @@ #ifndef __GAME_H__ #define __GAME_H__ -#include "../util/list.h" +#define BOARD_SIZE 9 + +#include "cell.h" typedef struct TrisGame { int width, height; - list_t *cells; + Cell *cells[BOARD_SIZE]; char sign; /* x = cross and o = circle */ int moves; } TrisGame; -- cgit v1.2.3