diff options
author | scratko <m@scratko.xyz> | 2024-04-14 21:18:36 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-04-14 21:18:36 +0300 |
commit | 0cf5dfed3e492608d044a5fc90c1815fab506fd7 (patch) | |
tree | d1efa942e89ab4f064324fcee4c623173abc5298 /pac.c | |
parent | 91583d5699503e981105beecc51d37b59dc1842e (diff) | |
download | pacman-0cf5dfed3e492608d044a5fc90c1815fab506fd7.tar.gz pacman-0cf5dfed3e492608d044a5fc90c1815fab506fd7.tar.bz2 pacman-0cf5dfed3e492608d044a5fc90c1815fab506fd7.zip |
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).
Diffstat (limited to 'pac.c')
-rw-r--r-- | pac.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -14,8 +14,7 @@ void initialize_pac(struct pacman *pac) static enum movement_direction get_matching_for_directions(game_space field, struct pacman *pac, - enum movement_direction - direction) + enum movement_direction direction) { struct free_directions free_paths = find_free_directions(field, pac->position.x, pac->position.y); |