Skip to content

Commit b850581

Browse files
authored
N48: tiny-snake.rs (#1426)
1 parent 92dc768 commit b850581

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

content/news/048/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,26 @@ Recent updates:
156156
[wor-linux]: https://www.anthropicstudios.com/2023/08/21/way-of-rhea-linux
157157
[wor-backtrace-rs]: https://github.com/rust-lang/backtrace-rs/pull/553
158158

159+
### [tiny-snake.rs]
160+
161+
![tiny-snake.rs running in the terminal](tiny_snake.gif)
162+
163+
[tiny-snake.rs] by [@Rodrigodd] is a terminal snake game, with a minimal binary
164+
size.
165+
166+
The entire game is implemented in a single file of pure Rust code, with zero
167+
dependencies. All interactions with the system are done through raw syscalls
168+
(so it only runs on Linux, sorry) and the program is completely panic-free
169+
(panic handling increases the binary size by almost 4KiB).
170+
171+
The game can be compiled using a single `rustc` command, and the resulting
172+
binary is only 2760 bytes.
173+
174+
_Discussions: [/r/rust](https://reddit.com/r/rust/comments/15d89s5/tinysnakers)_
175+
176+
[tiny-snake.rs]: https://github.com/Rodrigodd/tiny-snake.rs
177+
[@Rodrigodd]: https://github.com/Rodrigodd
178+
159179
## Engine Updates
160180

161181
## Learning Material Updates

content/news/048/tiny_snake.gif

69 KB
Loading

0 commit comments

Comments
 (0)