Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I used to be obsessed with Tetris (both on the console and the 40 line clear version on the computer) and ended up programming a version of it that maps one key on the keyboard to one "slot/rotation" combination for each piece. Amazingly, there are enough keys to cover all of the combinations, so each drop is just one key press. Ended up getting some pretty good 40 line clear times for this weird version of Tetris; it felt like I was typing to play the game. I don't know if anyone has done something like that since then—that was probably a decade ago.


There's a variant of this idea called "KeyTris" or "Finesse", here's one implementation: https://github.com/alex-ong/Finesse

Example of someone getting sub 20 seconds with this method: https://www.youtube.com/shorts/TGW4j7LRBJk


That's super cool, what sort of times were you able to achieve? I think it's "cheating" to even use the 180 degree flip button (but obv everyone is free to define their own rules for a game where you're essentially playing against yourself). I can play with zero finesse OR I can sub 50 seconds, but I definitely can't do both at the same time.


Interesting, but there's one thing I didn't get. Why does each piece need different keys?


I don’t think it’s a separate key for each piece. It’s a separate key for each column and rotation.


10 columns, 4 orientations - matches keyboard real nice and kentucky.


Awesome! That sounds like something worth sharing, if you were willing?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: