Terminal Game · Fork

My fork of Bastet, a terminal Tetris that deliberately hands you the worst possible next piece. I left the cruelty alone and gave it classic colours, a grid and a ghost piece, so at least I can see exactly how I'm about to lose. And for the days I'd rather not be bullied, it now has a fair mode too.

Bastet ("bastard Tetris") is a small ncurses game from 2005. Instead of picking pieces at random, it looks at your stack and chooses the one that hurts most. That usually means the straight I-piece never comes. I play it in a terminal on my Omarchy desktop, and a few things bugged me: the colours were off, it was hard to judge where a piece would land, and the screen went blank whenever my tiling window manager resized the window. So I forked it.

dqtris: the DQTRIS title above the well, classic tetromino colours, a faint dot grid, gaps between squares and an orange ghost piece showing where the falling L will land
dqtris
Original bastet: solid blocks in basic terminal colours, white O-piece, no grid or ghost piece
Original Bastet 0.43

Built over one day with Claude Code, one change at a time: the visuals in the morning, fair mode and the score boards later on. I tried a few things before settling. White outlines around each square looked busy, so they lost to simple gaps, a giant fullscreen version went back to normal size, and a three-piece preview in fair mode got cut back to one. The bastard block-chooser itself is untouched: it's still Federico Poloni's 2005 algorithm, and it still won't send me the line piece. The fork adds about 250 lines of C++, published on GitHub under the original GPL v3 licence.

Language
C++ with ncurses (wide-character build) and Boost
Upstream
Bastet 0.43 by Federico Poloni, GPL v3
Terminal
foot with JetBrains Mono Nerd Font, 256 colours
Launch
A shell alias: type dqtris in any terminal