Recently I wanted to implement a snake game using only the smallest amount of memory possible.
In the end I've come up with a solution (using #C and #curses) that is (re)using only 4 int variables.
After the #macros expand the #code looks rewardingly crazy.
https://www.andreinc.net/2022/05/01/4-integers-are-enough-to-write-a-snake-game
#c #snake #game #bitwise #lowlevel #cprogramming #cprogrammers #programming
#c #curses #macros #code #snake #game #bitwise #lowlevel #cprogramming #cprogrammers #programming
@safrakido
#include <stdio.h>
main ()
{
printf ("Hello, world\n");
}
#code #cprogrammers #hello #include