Skip to content

Play Gluttonous Snake game by reinforce learning

License

Notifications You must be signed in to change notification settings

AuYang261/RL_Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RL_Snake

Play Gluttonous Snake game by reinforce learning.

Dependence

  • python lib: pygame, numpy, matplotlib.

    ​ Run command follow to install:

    pip install pygame
    pip install numpy
    pip install matplotlib

Quick Run

Use view.py to run game performed by a trained model:

python view.py

image-20231014171227526

Train

Use train.py to train model:

python train.py

You can use custom configuration to train by editing this file.

About

Play Gluttonous Snake game by reinforce learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages