Live data from Hacker News

Show HN: Test your shape rotation skills

0xf00ff00f.github.io

151–160 of 210 posts

Re: Show HN: Test your shape rotation skills

#152
post #17

Damn, that's surprisingly difficult. But I think I shouldn't be allowed to brute-force answers (that's really tempting in the current design) and I'd probably appreciate if shapes were standing still, since the movement is distracting and barely relates to the skill being tested.

-10 seconds if you fail a pair should work against brute force.

Agreed. I found by the end I was better off rapidly tapping out the answers due to no penalty for incorrect guessed

Re: Show HN: Test your shape rotation skills

#153

I’d be really curious to collect gender before testing, because I feel like this is always one of those go to examples of the difference and male and female brains, would be curious to know if there is any substantial actual difference.

I read in a psychology book that this is one of the (few) cases where there’s a big gender difference in intelligence: males statistically do a lot better at this than females, and I believe those with higher testosterone also statistically do better.

I remember this fact being cited a lot as well, but honestly I question it, as others said, boys toys have traditionally been much more building / schematic oriented. I honestly doubt there would be a huge discrepancy in kids today

Re: Show HN: Test your shape rotation skills

#154

So cool, I love this! I’d love to play around with it, but I don’t see a license at a glance. If I were to make a variation of this, would I be allowed to share it with attribution to this version?

Hey, just added a license. It's public domain, but if you do something with this I'd love to hear about it!

Thanks for that! If I do I’ll certainly let you know.

Re: Show HN: Test your shape rotation skills

#157
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

Re: Show HN: Test your shape rotation skills

#158
This reminds me of a very poor interview question I asked a couple of times (and then never asked again because it is a terrible, terrible, interview question).

The snake cube puzzle [1] is a puzzle where you have to fold up a string of 27 cubes, with fixed "turns" like the shapes in the OP, into a 3x3x3 grid.

The goal was not to find a solution to the puzzle, but to find the smallest 2d area the snake could fit into without folding against itself. It turned into a modeling problem (how do you represent the puzzle in code?) and a recursion problem (try all possible folds), but, uh, even with a physical puzzle to play with, it was a little too abstract

A commenter on the link below asked another question over 13 years ago: can the puzzle be folded into a plane without any holes? Obviously if you just lay out the puzzle from end to end it will be in a plane, and without any holes, so maybe the question should be: what is the smallest 2d area the snake can fit into without creating any holes?

[1]: https://mypuzzles.wordpress.com/2008/09/07/the-snake-cube/

Re: Show HN: Test your shape rotation skills

#159
post #8

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

Hey, this should be fixed now. Thanks again!

I still run into the bug

https://i.ibb.co/y4p4JSM/20220220-231734.jpg

Re: Show HN: Test your shape rotation skills

#160
20 matches is my high after spending 20 minutes with it. I think I could probably get that to 30 ish with another hour.

Obviously you should not be rotating, but finding features of the shapes that are invariant with respect to rotation to calculate. We can think of the two middle segments as defining two coordinate axes which I'll just call the body, with the remaining segments the legs. There are three cases. 1) both legs coplanar with body: W, question mark, and O. 2) neither leg in the plan of the body: The lightning bolt, and the forklift. 3) one leg coplanar with body: Z with leg, Hook with leg.

Unfortunately, the lightning bolt, Z with leg, and Hook with leg are all chiral, (and are therefore more likely to appear, reducing the effectiveness of this heuristic), but just guessing among matching classes is sufficient to get 20 matches. A quick test of chirality could maybe do better, but I suspect it's most just about speed of guessing after this.

edit: 32 is my high score after playing for an hour. Which is at least higher than the brute force clicker guy's score, so I feel like I can be done. The human brain is very good at optimizing its solutions to this problem.

Post reply on HN