Skip to content

kenohassler/snakeqr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snakeqr

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.

SnakeQR as a QR code

This QR code is the compiled binary. The entire ELF executable clocks in at just under 2 KB (2024 bytes, to be exact).

Why?

Read my blog post about this codebase.

Building

Just run make. This will probably only run on OpenBSD/amd64 as is. Feel free to port to your Unix of choice.

Security

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!

License

ISC License. See LICENSE for details.

About

Game of snake that fits in a QR code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 67.7%
  • Assembly 15.2%
  • Roff 13.4%
  • Makefile 3.7%