Skip to content

mohan-246/snake_ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake AI

Train your own AI model to play Snake and enjoy the classic Snake game with this Python project!

Getting Started

Follow the steps below to train your AI model and play the Snake game:

Prerequisites

Installing Dependencies

Install pygame using the following command:

pip install pygame

Training Your AI Model

To train your own AI model, run:

python agent.py

This will initiate the training process. Watch as your AI learns to play Snake!

Playing the Original Game

To play the classic Snake game, run:

python gamehuman.py

Use arrow keys to control the snake and have fun!

Contributing

Contributions are welcome! If you have improvements or new features to suggest, please open an issue or create a pull request.

Happy coding and gaming!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages