A Snake Game Made with Pygame
This repository contains a Snake game implemented using the Pygame library for the game graphics and the Gym reinforcement learning environment to play the game. The game features the classic Snake gameplay where the player controls a snake that moves around the screen, collects food, and grows in size. The system uses reinforcement learning techniques to learn how to play the game and improve its performance over time.
The repository includes the complete source code for the game, as well as requirements to run the code.
It is a good example of how to use the Gym environment for making a fun game.
- Run:
python learn.py
- gym
- stable-baselines3
- pygame
- numpy