Skip to content

Using C to implement a simple AI for playing pacman based on graph algorithms

License

Notifications You must be signed in to change notification settings

Kuoyuan-Li/pacman-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pacman-AI

To play

Play the game with the keyboard by executing

./pacman <level>

Where level is from 0 to 9

To run AI pacman

Execute pacman with AI by executing

./pacman <level> <ai/ai pause> <max/avg> <budget>

Where ai pause calls your algorithm and pauses the game to allow playing one step at a time. <max/avg> is either max or avg, to select the 2 options for propagating scores, and is an integer number indicating the budget of your search.

Output file (output.txt) will record the max depth, Number of generated nodes, Number of expanded nodes, Number of expanded nodes per second, Total Search Time(in seconds), Maximum value in the board and Score.

About

Using C to implement a simple AI for playing pacman based on graph algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published