4 ms·
Implementing Tic Tac Toe with 170mb of HTML – No JavaScript or CSS
- fred256 3y agoA long, long time ago I also implemented tic-tac-toe in HTML. But just as a set of HTML pages with links for each X move (and an implied O move by the "computer" player). Total size of all the pages combined is about 60 kilobytes.
- schiffern 3y agoI like it. Using hyperlinks is far more idiomatic in HTML. https://en.wikipedia.org/wiki/Hypertext https://en.wikipedia.org/wiki/Hypertext
- Valgrim 3y agoWow, someone actually implemented Apu's thesis in the real world. link: https://m.youtube.com/watch?v=UOAdGjj-hIg https://m.youtube.com/watch?v=UOAdGjj-hIg
- gwern 3y agoThis reminds me of a take on reactive programming for the browser but avoiding any runtime JS I saw on HN, I think, years ago: you defined a total language, and just compiled all possible control-flows into the page using tricks like this.
- marginalia_nu 3y ago> Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy.