Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 665 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 665 Bytes

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.