Tetris in Desmos

These are two attempts to program Tetris in Desmos. The first of these was made as an exercise to learn Desmos actions, which are a way to update variables automatically. After I'd learnt some more desmos tricks, I made another one. So I have two versions, the first of which is still slighly more performant due to fewer features, but the second one is still much prettier and better in general. To use, activate the ticker (the metronome icon in the top-left of the expression bar), and press the buttons to control the piece.

Another interesting fact: All Desmos graphs have a link that looks like desmos.com/[calculatorType]/[hash], where the hash is usually a random string of letters and numbers. But there's a way to set the hash yourself, as long as it's alphanumeric and either 10 or 20 characters long. The method is kept somewhat secret to avoid exhausting all the "good" hashes, and it's a relatively inconvenient process, but I've managed to nab myself the "tetrisgame" hash. So https://desmos.com/calculator/tetrisgame now leads to my tetris game (version 2).

Links:

Desmos Tetris, version 1

Desmos Tetris, version 2