Skip to content

code of reinforcement learning agent learning to play pacman game. A part of exercises in berkley university's course on AI

Notifications You must be signed in to change notification settings

neurohari/Reinforcement_Learning-PacMan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reinforcement_Learning-PacMan

Code of reinforcement learning agent learning to play pacman game. A part of exercises in berkley university's course on .

NOTE : This code is put up in github for the purpose of presenting my knowledge in the field of reinforcement learning and python coding for my application for research positions, and not intended for distribution. While the code to extract information from pacman environment and other auxillary methods such as state and action definitions were already provided in the code by Berkley course work team, the essential and important functions to implement reinforcement learning such as computing the values, action values, performing action selection and implementing RL algorithms are written by the author (Hari Teja) himself.

This code is a complete algorithmic implementation of Q-learning and MDP's for gridworld and pacman game. Detailed description of the problem and objectives can be found in " http://ai.berkeley.edu/reinforcement.html#Q1 "

For self-learning PacMan implementation :

  1. For small gridworld of pacman, type in the terminal " python pacman.py -p PacmanQAgent -x 2000 -n 2010 -l smallGrid "
  2. For larger grid and implementation of approximate agent instead of explicit state space representation, type " python pacman.py -p ApproximateQAgent -a extractor=SimpleExtractor -x 50 -n 60 -l mediumClassic "

About

code of reinforcement learning agent learning to play pacman game. A part of exercises in berkley university's course on AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages