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 4 of 98

svet_04 replies#
Small bug: occasionally there are multiple matching pairs, although only 1 works (screenshot: https://ibb.co/JpRp0Pm)

Additionally, the auto rotation itself is mostly confusing, could be better to enable manual mouse rotation.
Cool game nonetheless!
Edit: The bug seems to be that shapes with different "DNA" can still be isometric in some cases: https://github.com/0xf00ff00f/rotator/blob/master/demo.cc#L4...

phreeza1 reply#
I encountered the same bug and it was also a donut kind of shape, maybe something to do with the closing of the loop?
svet_0#
Probably. L-U-R-D is the mirror of R-D-L-U but not the mirror of L-D-R-U, although isometric to both.
0xf00ff00f2 replies#
Ouch. Thank you so much for noticing this! Looks like I need a more robust test.
blamestross1 reply#
Ismorphism is hard to detect, even in reduced spaces. Really hard in arbitrary graphs.

For a "fast filter" generate the center of gravity for each (just the average of the voxel points as doubles) and abs+sort the resulting vector and assume they match if the "Sorted Cog Vector" matches. It will have false positives sometimes but no false negatives.

0xf00ff00f#
Great suggestion, thanks!
cptskippy#
Ok so I'm not crazy. The shapes moving had me second guessing myself trying to compare them.
0xf00ff00f1 reply#
Hey, this should be fixed now. Thanks again!
0xf00ff00f#
I feel stupid. Now it should be fixed, for real.

Thank you!