Snake Game in C#
This is a simple console-based implementation of the classic Snake game written in C#.
Control the snake to eat food, grow longer, and avoid hitting the walls or yourself. The game runs in a console window and supports real-time movement with arrow keys.
#Project Structure
Snake.csproj
– Project file for the .NET build systemSettings.cs
– Configuration for board size, game speed, and colorsProgram.cs
– Entry point of the game- Other
.cs
files – Contain logic for rendering, movement, collision, and scoring
#Technologies Used
- C# (.NET)
- Console-based UI
- Object-Oriented Programming
- Make sure you have .NET SDK installed.
- Open terminal in the project folder.
- Run the game:
dotnet run