Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 766 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 766 Bytes

snake-ai

Description

This project aims to explore the ability of various AI models to play the timeless Snake game. The primary objective is to employ diverse AI models and assess their performance, drawing comparisons to discern their respective strengths and weaknesses.

Setup

  1. Create and activate virtual env with pyenv
    pyenv virtualenv 3.10.12 snake_ai
    pyenv local snake_ai
  2. install the dependencies:
    pip install -r requirements.txt

Play the Game

To train an agent:

python src/train_snake_runner.py

You can also play the game yourself:

python src/snake_runner.py

Reference