Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/headblockhead/bm-nac
A two-player noughts and crosses (tic-tac-toe) game for x64 Linux systems, designed to look nice, and to take up very little space, small enough to fit into a QR code!
https://github.com/headblockhead/bm-nac
assembly linux-shell nasm
Last synced: 21 days ago
JSON representation
A two-player noughts and crosses (tic-tac-toe) game for x64 Linux systems, designed to look nice, and to take up very little space, small enough to fit into a QR code!
- Host: GitHub
- URL: https://github.com/headblockhead/bm-nac
- Owner: headblockhead
- Created: 2025-01-12T18:38:57.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-01-25T04:10:50.000Z (22 days ago)
- Last Synced: 2025-01-25T04:18:23.847Z (22 days ago)
- Topics: assembly, linux-shell, nasm
- Language: Assembly
- Homepage:
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BM-NAC
pronounced: bee-em-nack, stands for: beautiful-minimal-noughts-and-crossesA noughts and crosses (tic-tac-toe) game for the Linux terminal written in assembly language, and designed to be both good-looking, and to produce a very small binary.
Produced for Hack Club's [saycheese YSWS](https://saycheese.hackclub.com/).
[![asciicast](./demo.gif)](https://asciinema.org/a/LJ9rdZrWfQFpGYTSu487keIvw)
## Running
If you don't want to use the QR code, you can run it with:
```bash
nix run github:headblockhead/bm-nac
```## QR Code
The binary is small enough to fit in a QR code, so here's that QR code!
![game binary qrcode](./qrcode.png)
Use `zbarimg --raw --oneshot -Sbinary qrcode.png > executable` to get the executable from the QR code.
## Tasks
> [!IMPORTANT]
> You must be in the `nix develop` shell for these tasks to work.### build
```bash
nix build
ls -l ./result/bin/saycheese-ncg
```### qr
```bash
qrencode -t ansiutf8 -8 -r result/bin/saycheese-ncg
qrencode -o qrcode.png -8 -r result/bin/saycheese-ncg
zbarimg --raw --oneshot -Sbinary qrcode.png > scanned-binary
diff -s result/bin/saycheese-ncg scanned-binary
```