From 2c2448cc94b8f17ac699814a75110411d57f3bea Mon Sep 17 00:00:00 2001 From: scratko Date: Sun, 7 Apr 2024 03:07:42 +0300 Subject: BFS, queue files Fixed remaining direction check for pacman (old version was commented out). Breadth First Search for red ghost. Changed switch style. --- pac.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pac.h') diff --git a/pac.h b/pac.h index 1125694..e3c5ffa 100644 --- a/pac.h +++ b/pac.h @@ -3,7 +3,7 @@ #include "ghosts.h" -enum { +enum { max_live = 3, pac_y = 22, pac_x = 14 @@ -18,10 +18,10 @@ struct pacman { void initialize_pac(struct pacman *pac); -void change_pac_direction(game_space field, struct pacman *pac, int key, +void change_pac_direction(game_space field, struct pacman *pac, int key, enum movement_direction *stored_direction); -void check_remaining_direction(game_space field, struct pacman *pac, +void check_remaining_direction(game_space field, struct pacman *pac, enum movement_direction *stored_direction); void make_pac_move(game_space field, struct pacman *pac); -- cgit v1.2.3