Skip to content

tuan-nv0505/Snake-Deep-Q-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Q-learning for playing Snake game

Introduction

Here is my Python source code for training an agent to play Snake using the Deep Q-learning.

⭐ If you find this project interesting or helpful, please consider giving it a star on GitHub — it really motivates me to keep improving and sharing more AI projects!

Result

How to use my code

With my code, you can:

  • Train your model by running python train.py.
  • Test your trained model by running python evaluate.py.

Requirements

  • numpy
  • pygame
  • torch