From 0cf5dfed3e492608d044a5fc90c1815fab506fd7 Mon Sep 17 00:00:00 2001 From: scratko Date: Sun, 14 Apr 2024 21:18:36 +0300 Subject: Capture and liberation of ghosts Fixed coordinate in field_has_coin. Added marks on the field for the liberation zone (1 in front of #). Prison parameters for the ghost are set. Fixed condition in BFS search (additionally exclude the current point in the loop, dx == 0 && dy == 0). --- field.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'field.h') diff --git a/field.h b/field.h index ecf8c9a..56921d6 100644 --- a/field.h +++ b/field.h @@ -64,4 +64,7 @@ void change_point_if_outside_tunnel(struct coordinates *point); void clear_energizer(game_space field, struct coordinates point); +int is_equal_points(struct coordinates first_point, struct coordinates + second_point); + #endif -- cgit v1.2.3