Lurker News
Hi all, hope someone enjoys (or not) my weekend project. See how many matching pairs you can find in two minutes.

This is written in C++ and built to WebAssembly with Emscripten. The code is at https://github.com/0xf00ff00f/rotator

Comments (195) 98 threads

Show all comments

Showing thread 10 of 98

topher200#
I wrote a "smart" random clicker. It iterates through all the shapes and clicks their locations in a double-for loop. I added some jitter because it can't tell when it succeeds (so sometimes it starts in the "middle" of a loop and get stuck).

Paste this in the console and go! https://gist.github.com/topher200/aead3fd53b0f26bf880e7752eb...
I got a score of 33 on the first full run, which seems to be the highest in the thread (just barely beating the manual brute-force 31 run from @chungy[1]). I think it could be improved by being smarter about the when to click a random guess (or figuring out a way to remove the random clicking completely).
[1]: https://news.ycombinator.com/item?id=30408693