17 lines
539 B
Markdown
17 lines
539 B
Markdown
# Sanke
|
|
A simple snake game in the terminal. No third party libraries needed.
|
|
|
|
## Demo
|
|
Click image for video
|
|
|
|
[](https://www.youtube.com/watch?v=_coOVAW9qa4)
|
|
|
|
## How it works
|
|
The program makes the terminal use non-canonical input and output by using termios. Then it updates and prints a 2D character array containing the board borders, snake, and food. Before terminating, the program restores canonical mode.
|
|
|
|
## Info
|
|
Only tested with the combination of
|
|
- GCC
|
|
- Linux
|
|
- x86 CPU
|