it should/might/could be possible to write a snake game in something like, 30 bytes of x86 asm.
boot up real mode old school bios environment. 0xa000 is your screen, width/height with int 10.
[0] https://codevision.medium.com/running-c-snake-inside-uefi-df...
That's not the entirety of program state - stack aside, there are some loop counters that the author isn't including in the total, along with some implicit variables e.g., for keypress data.
It's a nice optimization exercise, but the result is not particularly mind-blowing to me. You could probably make it significantly more compact at the expense of readability. For one, the shape of the snake on the game board is not random: there's plenty of combinations, such as an alternating checkerboard pattern, that are physically impossible. So the shape is likely compressible.
In this way, "One integer is enough to write a Snake Game" (but you play in a 2x2 field).
xandrius•6h ago