Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 552 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 552 Bytes

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.