back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/ghosts.c
Commit message (Collapse)AuthorAgeFilesLines
* Coin checksscratko2024-04-121-4/+4
| | | | | Coin checks in yellow blocks and stars. Fixed arguments of find_free_directions function.
* Added behavior modesscratko2024-04-121-16/+63
| | | | | Reverse direction Random direction
* Removed the reverse motion for ghostsscratko2024-04-111-12/+31
| | | | Yellow intersections added.
* Searching for all ghostsscratko2024-04-101-28/+169
|
* Tracking coins eatenscratko2024-04-071-10/+10
| | | | | | | 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-071-66/+138
| | | | | | Fixed remaining direction check for pacman (old version was commented out). Breadth First Search for red ghost. Changed switch style.
* Initial commitscratko2024-04-021-0/+140