<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pacman, branch master</title>
<subtitle>Classic Pac-Man in C using ncurses library
</subtitle>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/'/>
<entry>
<title>Add README and revise distance metric</title>
<updated>2025-08-12T00:43:35+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2025-07-31T00:55:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=e79798e5ecc85738813363c3025961b0099802fb'/>
<id>e79798e5ecc85738813363c3025961b0099802fb</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added readme</title>
<updated>2024-04-18T17:39:13+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-18T17:39:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=cba2e3ddd2596f519750aed1179da8a757023850'/>
<id>cba2e3ddd2596f519750aed1179da8a757023850</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Release version</title>
<updated>2024-04-18T17:05:03+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-18T17:05:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=29afbdf8e26f741ac1d090f2e7704093253f17fc'/>
<id>29afbdf8e26f741ac1d090f2e7704093253f17fc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added colors</title>
<updated>2024-04-17T15:33:03+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-17T14:00:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=ef3844bf2128fa82f20c5995d1fca66fadba2ce3'/>
<id>ef3844bf2128fa82f20c5995d1fca66fadba2ce3</id>
<content type='text'>
Changed the number of pacman's lives.
Fixed clear_or_revert_symbol().
Target hit display.
Changed ghost initialization.
Clearing ghost positions is moved to the function.
Added flag in struct ghost_type (reached_pacman).
Changed catching stage.
Now eating an energizer resets the counter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changed the number of pacman's lives.
Fixed clear_or_revert_symbol().
Target hit display.
Changed ghost initialization.
Clearing ghost positions is moved to the function.
Added flag in struct ghost_type (reached_pacman).
Changed catching stage.
Now eating an energizer resets the counter.
</pre>
</div>
</content>
</entry>
<entry>
<title>Scoring system</title>
<updated>2024-04-15T23:37:12+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-15T23:37:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=194f71c150eb9ee696acca17176092e8b0ce6e4f'/>
<id>194f71c150eb9ee696acca17176092e8b0ce6e4f</id>
<content type='text'>
Pacman's starting position doesn't contain a coin.
Fixed an error in field_has_energizer().
The field prints the number of pacman lives and the score.
All coin checks are moved to the field.c file.
Restart is replaced by initialization of starting parameters.
The final stage contains the game results screens.
Queue clearing is combined with field clearing.
Get_out_stage moved to struct mode_type.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pacman's starting position doesn't contain a coin.
Fixed an error in field_has_energizer().
The field prints the number of pacman lives and the score.
All coin checks are moved to the field.c file.
Restart is replaced by initialization of starting parameters.
The final stage contains the game results screens.
Queue clearing is combined with field clearing.
Get_out_stage moved to struct mode_type.
</pre>
</div>
</content>
</entry>
<entry>
<title>Game over and restart</title>
<updated>2024-04-15T17:40:14+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-15T17:40:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=e42ac35110b1819bf9762fbb4504ab920a17e207'/>
<id>e42ac35110b1819bf9762fbb4504ab920a17e207</id>
<content type='text'>
Game over screen.
Corrected coordinates in is_liberation_zone().
The capture of pacman.
Changed the function name from caughting_stage() to catching_stage().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Game over screen.
Corrected coordinates in is_liberation_zone().
The capture of pacman.
Changed the function name from caughting_stage() to catching_stage().
</pre>
</div>
</content>
</entry>
<entry>
<title>Capture and liberation of ghosts</title>
<updated>2024-04-14T18:18:36+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-14T18:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=0cf5dfed3e492608d044a5fc90c1815fab506fd7'/>
<id>0cf5dfed3e492608d044a5fc90c1815fab506fd7</id>
<content type='text'>
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 &amp;&amp; dy == 0).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &amp;&amp; dy == 0).
</pre>
</div>
</content>
</entry>
<entry>
<title>Coin checks</title>
<updated>2024-04-12T13:33:07+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-12T13:33:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=91583d5699503e981105beecc51d37b59dc1842e'/>
<id>91583d5699503e981105beecc51d37b59dc1842e</id>
<content type='text'>
Coin checks in yellow blocks and stars.
Fixed arguments of find_free_directions function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Coin checks in yellow blocks and stars.
Fixed arguments of find_free_directions function.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added behavior modes</title>
<updated>2024-04-12T00:17:46+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-12T00:17:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=04a6703fd66a7d34b2556a9c203c4dada3baca38'/>
<id>04a6703fd66a7d34b2556a9c203c4dada3baca38</id>
<content type='text'>
Reverse direction
Random direction
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverse direction
Random direction
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed the reverse motion for ghosts</title>
<updated>2024-04-11T12:04:37+00:00</updated>
<author>
<name>scratko</name>
<email>m@scratko.xyz</email>
</author>
<published>2024-04-11T12:04:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.scratko.xyz/pacman/commit/?id=235f8481502263fcdb4823ff0bc4e8f831bc934d'/>
<id>235f8481502263fcdb4823ff0bc4e8f831bc934d</id>
<content type='text'>
Yellow intersections added.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Yellow intersections added.
</pre>
</div>
</content>
</entry>
</feed>
