Skip to content

erdisayar/ReinforcementLearning_Berkeley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pacman

UC Berkeley CS188 Intro to AI

Introduction These projects are from UC Berkeley CS 188

There are 2 different projects in this repository.1st project is about search and 2nd project is about reinforcement learning.

In 1st project, the Pacman agent will find paths through his maze world which is based on search algorithms such as DFS , BFS, UCS, ASTAR. To understand the mechanism, the tiny maze is used and simple run the pacman.py.It will open automatically the tinymaze map and agent will find its path base on dfs algorithm.The analysis of this search in tinymaze is written in this figure

To run the pacman in console, please remove the code below from the pacman.py

input_parameters = ['-l', 'bigMaze', '-z', '.5', '-p', 'SearchAgent', '-a', 'fn=dfs']

Depth First Search(DFS)

python pacman.py -l bigMaze -z .5 -p SearchAgent -a fn=dfs

Breadth First Search(BFS)

python pacman.py -l bigMaze -p SearchAgent -a fn=bfs -z .5

Uniform Cost Search (UCS)

python pacman.py -l bigMaze -p SearchAgent -a fn=ucs

A* Search

python pacman.py -l bigMaze -z .5 -p SearchAgent -a fn=astar,heuristic=manhattanHeuristic
  • DFS, BFS, UCS, ASTAR, ASTAR heuristic
python pacman.py -l bigMaze -z .5 -p SearchAgent -a fn=dfs
python pacman.py -l bigMaze -p SearchAgent -a fn=bfs -z .5

REINFORCEMENT LEARNING

Q-learning

PACMAN

CRAWLER

About

Reinforcement Learning tasks from Berkeley university.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages