And the code is only 600 lines
Mind you it also wrote its own mini stockfish... for 4 dimensions
https://gist.github.com/0xmiki/3b6fd1e545cc04bedd9e35d2d6736dd1

Gist
4D chess: a playable single HTML file with a rotatable tesseract and animated moves.
4D chess: a playable single HTML file with a rotatable tesseract and animated moves. - index.html
September 5, 2026 331