Code Monkey home page Code Monkey logo

snakeqr's Introduction

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.

Ports

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

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.

snakeqr's People

Contributors

ibara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kenohassler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.