SnakeQR is a game of snake written for the Unix console that fits entirely in a QR code.
Don't believe me? Here it is.
This QR code is the compiled binary. The entire ELF executable clocks in at just under 2 KB (2024 bytes, to be exact).
Read my blog post about this codebase.
Just run make
.
This will probably only run on
OpenBSD/amd64
as is.
Feel free to port to your Unix of choice.
The main branch supports OpenBSD/amd64. There are other branches on this repo that contain ports to other operating systems and CPU (e.g., Linux).
Thanks to the following people for ports:
- @kenohassler for Linux/amd64 and Linux/aarch64
To get a binary this small, virtually all of the OpenBSD mitigations you know and love have to be turned off. Additionally, lots of code to hook into syscalls has to be rewritten. This game is probably harmless but you have been warned!
ISC License.
See LICENSE
for details.