This project is basically a simple clone of the classic Snake Game. The goal of this project was to train the handling of two-dimensional arrays and also to test the ability to execute asynchronous tasks in parallel.
- The website patorjk.com was used for creating headers within the application.
- Within the
ApplicationSettings.cs
file the user can adjust the game settings. - After starting the application and pressing any key except
ESC
the game starts. - The body and the head of the snake will be moved accordingly.
- When pressing any of the
arrow keys
the snake direction changes. - When collecting a fruit, the body will grow larger.
- When a collision with the snakes body or the border of the field layout is detected, the game ends.
- Long story short, it works just like the original Snake game.
- ' ' -> empty space
- '+' -> snake head
- '■' -> snake body
- '#' -> default fruit
-
Clone this repository:
bash git clone https://github.com/mLoDar/SnakeGame.git
-
Open the solution file
(.sln)
in Visual Studio. -
Build the project and run it.
- Adding different sorts of fruits
- Adding obstacles
- Add ability to change settings within the application
Feel free to submit pull requests or issues!