Show HN: Interactive guide to Tetris in ClojureScript
shaunlebron.com
shaunlebron.com
Awesome work Shaun, thanks for contributing back to the ecosystem.
How is a piece defined and drawn? What control does the user have over a piece? Since two pieces cannot intersect, how can I detect that? And so on...
Not unique to ClojureScript, it's a great reminder the best way to write great code is to ask these questions and answer them before you begin composition.
Anyway, great work!
To clarify, the part that is cut off is the code inside the black rectangle, not the black rectangle itself. The problem is only on slides where the output is the 20-row board matrix. Since I can’t scroll the code, I could only fix it by zooming out (text-only zoom).
Other slides seem to have reasonable performance; is there something in ClojureScript that we should avoid here?