Skip to content

cyberphantom52/Astar_Snek_Gaem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages