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/cell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/game/cell.c') diff --git a/src/main/game/cell.c b/src/main/game/cell.c index cb56330..e8322ff 100644 --- a/src/main/game/cell.c +++ b/src/main/game/cell.c @@ -50,6 +50,8 @@ cell_new(float left, float right, float top, float bottom) cell->cx = (cell->right + cell->left) / 2; cell->cy = (cell->top + cell->bottom) / 2; + cell->sign = '\0'; + return cell; } @@ -82,4 +84,4 @@ void cell_set_sign(Cell *cell, char sign) { cell->sign = sign; -} \ No newline at end of file +} -- cgit v1.2.3