Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b850581

Browse filesBrowse files
authored
N48: tiny-snake.rs (rust-gamedev#1426)
1 parent 92dc768 commit b850581
Copy full SHA for b850581

File tree

2 files changed

+20
-0
lines changed
Filter options

2 files changed

+20
-0
lines changed

‎content/news/048/index.md

Copy file name to clipboardExpand all lines: content/news/048/index.md
+20Lines 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

Copy file name to clipboard
69 KB
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.