0xf00ff00f / rotator

Other
157 stars 8 forks source link

Game sometimes presents multiple valid pairs #2

Closed elgertam closed 2 years ago

elgertam commented 2 years ago

I was presented this board, but the game didn't recognize the two highlighted shapes as equivalent; instead, the game was looking for the top-right, bottom-left pair. That pair was much trickier to see due to occlusion.

image

Also, because occlusion is a tricky problem, would it be possible to give the shapes a trendy bit of springiness so we can drag them side to side or up & down to get a better view? If the springiness is set very stiff, the time to reorient the shape will cost the user more time any discernible gain they would get from seeing more of the shape other than in the case of occlusion.

0xf00ff00f commented 2 years ago

Ouch. This should be fixed now (turns out that comparing floating point numbers for equality with == is a bad idea in general). Thank you so much for reporting!

I agree that occlusion is a problem. I like the idea of allowing the user to rotate the shapes a bit. Thanks!