7a79d4ac1a0294645b733da70841e65430d5c826
Snake Game
A simple terminal-based snake game written in C++.
Build
To build the game, run the following commands:
cmake -S . -B build && cmake --build build
How to Run
After building the project, you can run the game with the following command:
./build/snake
How to Play
- Use the
w,a,s, anddkeys to control the snake.w: move upa: move lefts: move downd: move right
- The game ends if you collide with yourself.
- Press
qto quit the game at any time.
About
- This is a simple implementation of the classic Snake game.
- It is written in C++23.
- It uses the
ncurseslibrary to render the game in the terminal.
Languages
C
94.3%
CMake
5.7%