https://github.com/dannyvankooten/cnake
Snake in your terminal. In C, no dependencies.
https://github.com/dannyvankooten/cnake
ansi-escape-codes c snake
Last synced: 11 months ago
JSON representation
Snake in your terminal. In C, no dependencies.
- Host: GitHub
- URL: https://github.com/dannyvankooten/cnake
- Owner: dannyvankooten
- License: unlicense
- Created: 2024-02-08T10:56:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-09T16:25:24.000Z (over 2 years ago)
- Last Synced: 2025-03-08T01:03:53.643Z (over 1 year ago)
- Topics: ansi-escape-codes, c, snake
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cnake
Snake in your terminal. In C, no dependencies.

## Usage
Run `make` to compile.
```
make
```
Alternatively, invoke your compiler of choice directly:
```
cc cnake.c -O2 -o cnake
```
Then run `cnake` from your terminal to start the game.
### Controls
- `wasd` to change direction.
- `+` or `-` to in- or decrease the snake's speed.
- `ESC` or `Ctrl+C` to quit.
## Related resources
- everything you ever wanted to know about terminals, https://xn--rpa.cc/irl/term.html
- ANSI escape codes, https://en.wikipedia.org/wiki/ANSI_escape_code
## License
[UNLICENSE](LICENSE)