Skip to content

A project to train the snake agent how to play using Deep Q-Learning/Deep Reinforcement Learning

License

Notifications You must be signed in to change notification settings

erickmbugua/Snake-Game-with-AI-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Snake-Game-with-AI-Agent

Introduction

A project to train the snake agent how to play using Deep Q-Learning/Deep Reinforcement Learning

Install

This project requires the following prerequisites:

-Python 3.6(unless Tensorflow is supported on higher versions)

-Tensorflow

-Keras

-Pygame

-h5py

After cloning or downloading the project change the file paths in SnakeGameAI, to the path they lie in on your computer.

The file paths are on line 11,20,27,128 and 222.

Running

If you want to train the model further, set the train variable on line 226 to True.

If you want to use the trained model, set load_weights on line 224 to True.

About

A project to train the snake agent how to play using Deep Q-Learning/Deep Reinforcement Learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages