HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
andrewrk
tetris
Zig2016–2020
andrewrk / tetris

tetris

A simple tetris clone written in zig programming language.

5Distinct people
6Mentions
0Explicit recommenders
495GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A simple tetris clone written in zig programming language.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year6 dated mentions

Observed mentions: 2016-02-01 06:13:12 UTC to 2020-09-19 15:08:18 UTC.

012342016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2020

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC413
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101

What Hacker News says

6 sources
Thanks for the link! I am going to look more into rg3d, but the C99 engine is interesting to me, because I use Raylib[0] for my C gamedev explorations. I will never fully leave C, because I will be dead before C is fully, or largely, displaced by the likes of Rust or another PL. I have also been playing with Zig, and there is a Tetris demo done by Andrew Kelley the creator of Zig, but no game engine I know of yet [1,2]. [0] https://www.raylib.com/ [1] https://ziglang.org/ [2] https://github.com/andrewrk/tetris/blob/master/build.zig
In rg3d: Rust 3D game engine with an FPS demo game and scene editor
Maybe easier integration with existing C libraries? They give an example of a tetris clone in Zig. This is how they include GLFW with Zig: https://github.com/andrewrk/tetris/blob/master/src/c.zig and all other locations in the project just import this c.zig file. In contrast in Rust, I think you have to actually declare all the functions you want to use from a C library. For example: https://github.com/PistonDevelopers/glfw-rs/blob/master/src/....
In Zig: a system language which prioritizes optimality, safety, and readability
What exactly does the author mean by "C/C++ compatible"? Because my language[1] just got the ability to directly include .h files and access to the functions and symbols therein. Small snippet[2]: c_import { @c_include("GLFW/glfw3.h"); @c_include("stdlib.h"); @c_include("stdio.h"); } I realize this probably comes across as trying to one-up another person's work but I just got this working a few minutes ago and I'm really excited to demo it! [1]: https://github.com/andrewrk/zig [2]: https://github.com/andrewrk/tetris/blob/aaf09e30a3a7b9ed8f34... OK I think I understand what the author means by "C/C++ compatible". Check out this snippet[3] > Note that there is no #include line in the source file. The ZL prelude includes some of the more common functions from the C standard library and ZL source files are not
Read the rest
run through the C preprocessor by default. The driver script zlc is meant to act as a drop drop in replacement for GCC. For example, > zlc main.zl file1.cpp file2.zlp -o main I think that zl compiles to C and also acts as a compiler driver. [3]: http://zl-lang.org/doc/zlch2.html
In ZL: A C/C++ Compatible Language with Hygienic Macros

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.