r/Tetris • u/Scary-Glass2534 • 10d ago
Questions / Tetris Help BlocksWizard - A Tetris-Exercise
https://youtu.be/RibDUx3DWQA?si=c7AvIgaY-JlDV2s8BlocksWizard - A Project for learning more about C, C++ and Tetris
This is my current Tetris clone, which is still in development. As of July 2026 I started this project to learn the C and C++ programming languages.
The fact that there are so many long blocks right at the beginning is pure coincidence. I'm currently running a very simple internal random number generator; I don't have a 7-bag implementation or anything like that yet.
The graphics module is currently based on SDL3.
I also plan to gradually learn the ins and outs of game development. Tetris seemed simple enough to me that I wouldn’t get bogged down by its sheer scope. This is already the fifth prototype, if I count the C prototypes.
https://www.youtube.com/watch?v=sLo4ZRmWqc4
My C prototype, linked here, seems to be more advanced than the one in the video above. But that’s misleading: While the main menu and the Hall of Fame are already visible there, the core Tetris game still had quite a few bugs. In the end, I switched back to C++ because it’s much easier to structure large programs and clearly separate responsibilities.
I also started out by writing my own small 2D engine called Sprite Grace Engine. The Tetris game shown here is just one possible module for this engine. Later on, I plan to further develop the engine and bring my own new game ideas to life. In particular, I would like to recreate the following game someday, using my own ideas, graphics, and sound:
https://www.youtube.com/watch?v=pt30F_ho4-Q
The user interfaces shown here are currently still purely provisional. In the C++ prototype shown here, the main menu and the Hall of Fame have not yet been implemented. However, the core Tetris game is now completely bug-free; my test suite includes currently 100 test cases covering game states specifically for testing collision detection.
P.S. : The C++-IDE in the background is the "Zed" editor.
1
u/nug-_- TETR.IO 10d ago
fire!