This is a simple Snake game implemented in Python using Pygame library. The game follows a Finite State Machine (FSM) Automata design for managing the game's states.
- Use arrow keys to control the direction of the snake: Up, Down, Left, Right.
- The snake grows longer as it eats apples.
- Avoid colliding with the walls or biting itself to continue playing.
- Clone the repository
git clone https://github.com/imp-joshi/PyFang - Install dependencies using
pip install -r requirements.txt - Run the game with
python snake.py
This project is licensed under the MIT License
Enjoy playing! 🐍🍎