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 and ) that is (re)using only 4 int variables.

After the expand the looks rewardingly crazy.

andreinc.net/2022/05/01/4-inte

#c #curses #macros #code #snake #game #bitwise #lowlevel #cprogramming #cprogrammers #programming

Last updated 3 years ago

Temples of Syrinx · @SyrinxTemple
20 followers · 71 posts · Server metalhead.club

@safrakido
<stdio.h>
main ()
{
printf ("Hello, world\n");
}

#code #cprogrammers #hello #include

Last updated 3 years ago