Train your own AI model to play Snake and enjoy the classic Snake game with this Python project!
Follow the steps below to train your AI model and play the Snake game:
- Python 3.x
- pygame
Install pygame using the following command:
pip install pygame
To train your own AI model, run:
python agent.py
This will initiate the training process. Watch as your AI learns to play Snake!
To play the classic Snake game, run:
python gamehuman.py
Use arrow keys to control the snake and have fun!
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!