Skip to content

kevinunger/snake-Q-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake-Q-Learning

Q-Learning with the classic snake game

python3 & pygame

  • run "python qlearning.py t" for training

  • run "python qlearning.py p" for "playing"

  • qlearning.py runs snake.py and emulates the keypresses

  • in traing mode it runs snake_headless.py, which disables fps ticks and graphical output for faster training

  • Q-Function used: formula

diagramm demo

About

Q-Learning with the classic snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages