summaryrefslogtreecommitdiff
path: root/src/main/game/game.h
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 09:05:45 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 09:17:04 +0200
commit1053ec415d3c8fc08923a157f473364b8df59737 (patch)
tree174d088543ab93130b765588e46dbd1021f78ff0 /src/main/game/game.h
parent50bc168a8ba2a7eb341fec8f688f0c6cd1cd0acc (diff)
downloadtris-1053ec415d3c8fc08923a157f473364b8df59737.tar.gz
tris-1053ec415d3c8fc08923a157f473364b8df59737.zip
Add the logic to check the winner
Diffstat (limited to 'src/main/game/game.h')
-rw-r--r--src/main/game/game.h6
1 files changed, 4 insertions, 2 deletions
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;