"# snake-game" (Terminal-Based)
This is a simple Snake game implemented in C#, designed to be played in the terminal. The game follows the classic Snake mechanics where the player controls a growing snake that moves around the screen, consuming food while avoiding collisions with the walls and itself. The goal is to achieve the highest possible score by eating food and growing the snake.
- Classic Snake gameplay in a terminal interface.
- Real-time keyboard controls for movement.
- Randomized food spawning mechanics.
- Increasing difficulty as the snake grows.
- Score tracking system.
- Simple, clean, and lightweight implementation.
- .NET SDK (version 6.0 or later recommended)
- Windows, macOS, or Linux with a terminal that supports .NET applications
- Clone the repository:
git clone https://github.com/hilarycodes/snake-game/
- Navigate to the project directory:
cd snake-game - Build the project:
dotnet build
- Run the game:
dotnet run
- Use the arrow keys (
↑,↓,←,→) to control the snake's movement. - Eat the food to grow the snake and increase your score.
- Avoid hitting the walls and yourself to prevent the game from ending.
- Try to achieve the highest score possible!
- Implementing different difficulty levels.
- Adding a high-score tracking system.
- Introducing obstacles to increase challenge.
- Enhancing game visuals using ASCII art.
Contributions are welcome! If you find a bug or have a feature request, feel free to open an issue or submit a pull request.
- Inspired by the classic Snake game.
- Developed using C# and .NET for a lightweight and portable experience.