This is a Snake game implemented in Rust using the SDL2 library for graphics and A* algorithm for finding the shortest path to the food.
- Rust compiler and Cargo package manager installed. You can download them here.
- SDL2 development libraries installed.
- Clone the repository to your local machine:
git clone https://github.com/cyberphantom52/Astar_Snek_Gaem.git
cd Astar_Snek_Gaem
- Build and run the game:
cargo run
- Use arrow keys to control the snake's movement.
- Press
C
and the snake will automatically find the shortest path to the food using the A* algorithm.
- Add levels of increasing difficulty.
- Implement additional pathfinding algorithms for comparison.
- Add sound effects and music.
- Add ability to track user score.
- Add a main menu
Feel free to contribute and improve the game! Happy coding!