Hacker News new | past | comments | ask | show | jobs | submit login
Implementing Tic Tac Toe with 170mb of HTML – No JavaScript or CSS (portswigger.net)
13 points by thunderbong on Nov 11, 2023 | hide | past | favorite | 5 comments



A 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.


I like it. Using hyperlinks is far more idiomatic in HTML.

https://en.wikipedia.org/wiki/Hypertext


Wow, someone actually implemented Apu's thesis in the real world.

link: https://m.youtube.com/watch?v=UOAdGjj-hIg


This 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.


> Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: