Skip to content

AISHIK999/Reinforcement_snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake reinforcement

AI model, trained using reinforcement learning to play snake game

  • Training an AI model to play a game of snake
  • The game is created using PyTorch
  • The model has been trained using QLearning method

Installation

  • Make sure that python has been installed in the system. Alternatively, a virtual environment can also be used
  • Install the libraries:
pip install -r requirements.txt
  • Run the model:
python run.py

Issues:

UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor.

About

AI model based on QLearning to play snake game

Topics

Resources

Stars

Watchers

Forks

Languages