Project
TETATUI



Tetris in the terminal with guideline rules, opener drills, and peer-to-peer versus.
tetatui plays modern Tetris in the terminal. This includes the Super Rotation System with full wall kicks and 180Β° rotation, a 7-bag randomizer, hold, ghost pieces, a five-piece preview, and scoring with T-spins, combos, back-to-back, and perfect clears. Several modes are also included, like Marathon, Sprint (40 lines), Ultra (2 minutes), Cheese, Practice, and Versus.
Practice drills seven openers, from TKI-3 to Albatross, with each openerβs coverage worked out over all 5,040 first-bag orders. It also imports fumen diagrams and has a finesse drill. Versus connects two players directly, with no server, deals both the same pieces, and sends garbage by Jstris rules.
The engine is hand-written in Rust on ratatui, with its own seeded random numbers, so any game replays from
--seed. It began as a port of an earlier C++ and raylib game.
Personal thoughts
As you may have guessed from the design of this site, I like the VTuber Hoshimachi Suisei and am inspired by her skill in Tetris. I also wanted to adapt my old Tetris game written in C++ to Rust and ratatui (because itβs a great framework to build TUI applications), so I could play and practise Tetris.
What started as a mere port of my old C++ game has grown into a Tetris engine with a comprehensive set of features. I hope others can enjoy it as much as I do, and that it can help them improve their Tetris skills.