|
|
il y a 8 mois | |
|---|---|---|
| src | il y a 8 mois | |
| .gitignore | il y a 1 an | |
| README.md | il y a 10 mois | |
| compile.sh | il y a 1 an |
A simple snake game in the terminal. No third party libraries needed.
Click image for video
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.
Only tested with the combination of