Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.01 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.01 KB

Rust Snake Game with A* Pathfinding

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.

Getting Started

Prerequisites

  • Rust compiler and Cargo package manager installed. You can download them here.
  • SDL2 development libraries installed.

Installing

  1. Clone the repository to your local machine:
git clone https://github.com/cyberphantom52/Astar_Snek_Gaem.git
cd Astar_Snek_Gaem
  1. Build and run the game:
cargo run

How to Play

  • 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.

Tasks

  • 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!