back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Game over and restartscratko2024-04-156-116/+200
| | | | | | | Game over screen. Corrected coordinates in is_liberation_zone(). The capture of pacman. Changed the function name from caughting_stage() to catching_stage().
* Capture and liberation of ghostsscratko2024-04-147-34/+294
| | | | | | | | 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).
* Coin checksscratko2024-04-125-19/+56
| | | | | Coin checks in yellow blocks and stars. Fixed arguments of find_free_directions function.
* Added behavior modesscratko2024-04-128-54/+308
| | | | | Reverse direction Random direction
* Removed the reverse motion for ghostsscratko2024-04-115-24/+79
| | | | Yellow intersections added.
* Searching for all ghostsscratko2024-04-104-35/+215
|
* Tracking coins eatenscratko2024-04-079-56/+117
| | | | | | | 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-0710-221/+428
| | | | | | Fixed remaining direction check for pacman (old version was commented out). Breadth First Search for red ghost. Changed switch style.
* Initial commitscratko2024-04-028-0/+653