Show HN: Tetris Time (tetris-time.koenvangilst.nl)
It's almost New Year's and here's an original way to show the countdown using Tetris. I'm sure something similar has been done before, but I had a lot of fun building this (TDD style) using Claude Code.
After New Year's it can also function as a regular clock:
https://tetris-time.koenvangilst.nl/
For the impatient, it's possible to increase the speed using url parameters:
https://tetris-time.koenvangilst.nl/?to=2025-12-31T23:00:00....
4 comments
[ 0.23 ms ] story [ 26.7 ms ] threadWhat worked particularly well here was a test-driven (TDD) approach. I asked Claude Code to focus only on the algorithm for selecting the next Tetromino (the Tetris blocks), starting with tests. After that, things went smoothly, though it still took many follow-up prompts (around 100) to reach the final result.
First time I ran it, just off the basic link, it eventually finished with a time of 36:42 (ran at 15:16)
Then I tried turning up the speed and it seemed to make numbers at first but erased its own progress with blank blocks, ending in gibberish.
Maybe another 100 prompts? haha.