From 2155be63d154d7d613c6227cc0376144fa254c03 Mon Sep 17 00:00:00 2001 From: venomade Date: Thu, 27 Feb 2025 17:30:36 +0000 Subject: Add experimental branch --- src/game.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index c276f2c..5d5163a 100644 --- a/src/game.h +++ b/src/game.h @@ -89,11 +89,17 @@ typedef struct { Chromo chromo; } Agent; +// TODO: use Env type +// TODO: Change env_map to struct +// maybe other env types need to store additional data like agents +#define ENV_MAP_NONE 0 +#define ENV_MAP_WALL 1 +#define ENV_MAP_FOOD 2 +#define ENV_MAP_AGENTS 3 + typedef struct { Agent agents[AGENTS_COUNT]; - //int agents_map[BOARD_HEIGHT][BOARD_WIDTH]; - int foods_map[BOARD_HEIGHT][BOARD_WIDTH]; - int walls_map[BOARD_HEIGHT][BOARD_WIDTH]; + int env_map[BOARD_HEIGHT][BOARD_WIDTH]; } Game; void init_game(Game *game); -- cgit 1.4.1-2-gfad0