Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novara754/snake
A terminal-based game of snake written in C11 using ncurses.
https://github.com/novara754/snake
Last synced: 30 days ago
JSON representation
A terminal-based game of snake written in C11 using ncurses.
- Host: GitHub
- URL: https://github.com/novara754/snake
- Owner: novara754
- License: mit
- Created: 2020-01-29T19:50:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-30T20:18:55.000Z (almost 5 years ago)
- Last Synced: 2024-10-14T22:14:26.919Z (2 months ago)
- Language: C
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# snake
A terminal-based game of snake written in pure C11 using ncurses.
## Instructions
### Building & Running
**Requirements:** POSIX-compliant operating system with libncurses installed.
Run the following command to compile the game:
```
$ make all
```
Then you can simply run the resulting executable:
```
$ ./snake
```## Controls
To steer the snake you can use WASD or simply the arrow keys. Move the Snake (represented by `#`)
to collect apples (`O`). You can press Q to quit the game.## Screenshot
![screenshot of the game](screenshot.png).
## Bugs
- Snake can collide with itself with no repurcussions
## License
Licensed under the [MIT License](LICENSE.md).