Skip to content

AdnanZahid/SnakeGame

Repository files navigation

SnakeGame

SnakeGame is an AI-driven version of the classic Snake game, utilizing neural networks to enhance gameplay intelligence.

Dependencies

Ensure you have the following Python libraries installed:

  • TensorFlow: Machine learning framework
  • TFLearn: High-level deep learning library built on TensorFlow
  • PyGame: Set of Python modules for game development
  • NumPy: Library for numerical computations

Install any missing dependencies using:

pip install tensorflow tflearn pygame numpy

How to run

Activate virtual environment:

source bin/activate

Execute the game:

python SnakeGame.py

Objective

This project serves as a practical exercise in Python programming, offering hands-on experience with TFLearn and neural networks.

Gameplay

Snake game using neural networks

Inspiration

This project was inspired by the tutorial: Training a Neural Network to Play Snake

Releases

No releases published

Packages

No packages published

Languages