Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibara/snakeqr
Game of snake that fits in a QR code.
https://github.com/ibara/snakeqr
bsd c game games gaming minimalism openbsd unix video-game video-game-development video-games videogame videogames
Last synced: 3 months ago
JSON representation
Game of snake that fits in a QR code.
- Host: GitHub
- URL: https://github.com/ibara/snakeqr
- Owner: ibara
- License: isc
- Created: 2020-08-03T07:16:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-23T18:36:05.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T13:04:34.793Z (4 months ago)
- Topics: bsd, c, game, games, gaming, minimalism, openbsd, unix, video-game, video-game-development, video-games, videogame, videogames
- Language: C
- Homepage: https://briancallahan.net/blog/20200803.html
- Size: 70.3 KB
- Stars: 26
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](snakeqr.png)
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](https://briancallahan.net/blog/20200803.html)
about this codebase.Building
--------
Just run `make`.
This will probably only run on
[OpenBSD](https://www.openbsd.org)/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/aarch64Security
--------
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.