back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/ghosts.h
Commit message (Collapse)AuthorAge
* Capture and liberation of ghostsscratko2024-04-14
| | | | | | | | 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).
* Added behavior modesscratko2024-04-12
| | | | | Reverse direction Random direction
* Searching for all ghostsscratko2024-04-10
|
* Tracking coins eatenscratko2024-04-07
| | | | | | | The initialization of ncurses parameters and ghosts was put into functions. The order of movements has been changed: now pacman moves first. Accounting for eaten coins. Correct coin erasure.
* BFS, queue filesscratko2024-04-07
| | | | | | Fixed remaining direction check for pacman (old version was commented out). Breadth First Search for red ghost. Changed switch style.
* Initial commitscratko2024-04-02