Nenhuma descrição

Aaro Saila 78757a973f Merge branch 'rework' of https://git.aarosaila.dy.fi/aaro/sanke into rework 8 meses atrás
src f93ea56076 added null checks after allocations 8 meses atrás
.gitignore 8b8160dcd7 added commandline arguments and deleted target 1 ano atrás
README.md 883aa91224 Removed outdated information. 10 meses atrás
compile.sh 57d2aba783 Changed version number to git hash 1 ano atrás

README.md

Sanke

A simple snake game in the terminal. No third party libraries needed.

Demo

Click image for video

Sanke demo

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