Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

HN lunch challenge: Many here have noted one should be able to do this with far fewer total states by ignoring the order of the moves and focusing only on what the next board state needs to be. Who can generate the smallest working HTML file first? Preferably with how they generated the HTML too.


I got 560KB. More than 300 times smaller. See my comment here: https://news.ycombinator.com/item?id=38266987



And now to 367KB! By removing quotes around HTML attributes ^_^…

https://gist.github.com/p4bl0-/abf4960f07045d7a443230a46e73b...


kragen made something like this decades ago, except it was one HTML page per state.

Some code I wrote to generate a small table using BDDs is at https://codewords.recurse.com/issues/four/the-language-of-ch...

Also from there:

> In a 6th-grade science fair Steve Wozniak did [a tic-tac-toe machine] much better: “about 100 transistors and about 100 diodes.” How? Beats me!




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

Search: