diff options
author | scratko <m@scratko.xyz> | 2025-07-31 03:55:59 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2025-07-31 04:07:30 +0300 |
commit | 8fe2319e189b4d830a892b8c686d08cff5556962 (patch) | |
tree | 60479d39949e0a13efce32d75e5fec1886eae09f /field.h | |
parent | cba2e3ddd2596f519750aed1179da8a757023850 (diff) | |
download | pacman-8fe2319e189b4d830a892b8c686d08cff5556962.tar.gz pacman-8fe2319e189b4d830a892b8c686d08cff5556962.tar.bz2 pacman-8fe2319e189b4d830a892b8c686d08cff5556962.zip |
Added many inline comments for clarity.
Introduced initial version of README with gameplay details, controls, and AI logic.
Replaced Euclidean distance with Manhattan distance in standard_distance() to better
match grid-based movement without diagonal traversal.
Diffstat (limited to 'field.h')
-rw-r--r-- | field.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -16,6 +16,12 @@ enum intersection_type { one_path = '1', two_paths = '2', three_paths = '3', + /* + * Yellow blocks': ghosts can't go up from these tiles during normal + * movement. When entering from left or right, they can only continue + * straight. This restriction is ignored in frightened mode or during + * mode transitions. + */ yellow_block = 'y', direct_path }; |