https://github.com/roziscoding/snek
A stupid snake game I made to learn a bit of C++
https://github.com/roziscoding/snek
Last synced: about 1 year ago
JSON representation
A stupid snake game I made to learn a bit of C++
- Host: GitHub
- URL: https://github.com/roziscoding/snek
- Owner: roziscoding
- License: mit
- Created: 2023-10-22T22:52:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T23:03:43.000Z (over 2 years ago)
- Last Synced: 2025-02-27T02:55:48.137Z (about 1 year ago)
- Language: Shell
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snek
A simple snake game that runs on the terminal.
## How to Play
Use the arrow keys or the AWSD keys to move the snake around the board. The goal is to eat as many apples as possible without running into the walls or the snake's own tail. Each apple you eat will increase your score by one point.
Press the space bar to pause the game and press q to exit.
## Installation
1. Clone this repository.
2. Build the game by running `./configure && make`.
3. Install the game by running `make install`.
4. Start it by running `snek`.
5. Profit.
## Controls
- Use the up arrow key or the W key to move the snake up.
- Use the down arrow key or the S key to move the snake down.
- Use the left arrow key or the A key to move the snake left.
- Use the right arrow key or the D key to move the snake right.
- Press the space bar to pause the game.
- Press r to reset the game at any time
- Press q to exit the game.
## Credits
This game was created using C++ and the `ncurses` library.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.