An open API service indexing awesome lists of open source software.

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++

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.