Skip to content

Robomate/q_learning_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

q_learning_demo

Contribution to the coding challenge "How to use Q Learning in Video Games Easily" - https://www.youtube.com/watch?v=A5eihauRQvo

Modifications:

  • a 50x50 grid layout
  • 500 randomly generated walls
  • 100 randomly generated red tiles
  • 1 randomly generated green tile in the top right corner
  • visited tiles will be colored in blue gradually
  • a graph that will plot the score for each iteration (reaching the green tile will give a reward of 100 points to visualize successful iterations even better)

Screenshots:

alt tag

alt tag

Close to 300 iterations the bot will find the green tile (score increases by 100 points). However the bot will get stuck in the bottom left corner (close to the starting tile) after approx. 500 iterations. As seen in the chart, the score will then drop significantly before it will plummet to approx. -2000 points. The blue colored tiles indicate where the bot gets stuck then.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%