Files
snake/README.md
T
2025-11-07 00:55:27 -05:00

33 lines
702 B
Markdown

# Snake Game
A simple terminal-based snake game written in C++.
## Build
To build the game, run the following commands:
```bash
cmake -S . -B build && cmake --build build
```
## How to Run
After building the project, you can run the game with the following command:
```bash
./build/snake
```
## How to Play
- Use the `w`, `a`, `s`, and `d` keys to control the snake.
- `w`: move up
- `a`: move left
- `s`: move down
- `d`: move right
- The game ends if you collide with yourself.
- Press `q` to 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 `ncurses` library to render the game in the terminal.