2026-01-21 17:01:29 +02:00
2026-01-21 16:43:53 +02:00
2025-09-15 11:30:51 +03:00
2026-01-21 17:01:29 +02:00

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
Description
A sanke game
Readme 439 KiB
Languages
C 95.2%
Shell 4.8%