News for hackers. Stuff that matters.
Re:Show HN: Test your shape rotation skills by whatshisface on Sunday February 20, 2022 @02:41PM (#30408603)
Sometimes the initial rotation hides a part of the shape.

Also, I have always wondered if there's a way to translate these shapes to strings for quick "mental algorithm" matching. Something like, "5, left turn, 3, right turn..."

I guess you'd need a normal form. The first turn can be defined as always "right" or "left," and subsequent turns can be right, left, up or down. The first turn that's "up" or "down," can be defined as "up." That leaves two ways to read any shape, but that's an uhh constant-factor overhead. :)

(I can't think of a way to define a normal form reading direction that wouldn't involve potentially reading an arbitrary distance in before having to re-start the other way.)

Re:Show HN: Test your shape rotation skills by djtango on Monday February 21, 2022 @02:02AM (#30412690)
>Also, I have always wondered if there's a way to translate these shapes to strings for quick "mental algorithm" matching. Something like, "5, left turn, 3, right turn..."

I was once measured to have abysmal spatial reasoning (which is probably backed up by poor hand-eye coordination and sense of direction) but I had no problem doing molecular geometry and group theory, I suspect it was because I applied logic rather than visualisation to compensate. (I am terrible at walking into an empty place an imagining how I might want to fill it)

Re:Show HN: Test your shape rotation skills by bottled_poe on Monday February 21, 2022 @03:11AM (#30413141)
Playing on mobile, it would be cool if the accelerometer rotated all the pieces at once.
Re:Show HN: Test your shape rotation skills by musingsole on Sunday February 20, 2022 @02:56PM (#30408765)
I think that's basically what I did, just without elevating the forms to anything conscious. By the end, I was matching shapes too fast to have actually counted much of anything -- some sort of consolidated memory had started.
Re:Show HN: Test your shape rotation skills by akomtu on Sunday February 20, 2022 @05:43PM (#30409972)
A small improvement: use a vowel to encode turns, and consonants to encode segment lengths. So each shape would be encoded by a "word", e.g. "bakitux". Brains have dedicated "word-processing units" and those are much faster than number-processing units.
Re:Show HN: Test your shape rotation skills by biomcgary on Monday February 21, 2022 @11:02AM (#30417316)
Abstracting into words will lead to invention of words that are disconnected from the underlying geometry (i.e., shapes that are not possible due to collisions), but have strong verbal associations. Eventually, the word thinkers will redefine the system to allows them to play word games without dealing with the pesky geometric limitations.
Re:Show HN: Test your shape rotation skills by Teever on Sunday February 20, 2022 @05:58PM (#30410081)
> Brains have dedicated "word-processing units" and those are much faster than number-processing units.

*In most people.

Re:Show HN: Test your shape rotation skills by crdrost on Sunday February 20, 2022 @08:46PM (#30411075)
> The first turn can be defined as always "right" or "left,"

No it can’t, not in 3D... it is just a turn.

You can however choose to rotate about the first segment until the turn is Right, then use this orientation for the rest.

In terms of normal form and restarts, who cares? Just generate the string both ways, it’s 2n computations, choose the lowest in lexicographic order, and life is good. If you get to billions of turns are humans really going to be doing the comparison? Surely we’d just stream the string into a hash function or something...

Re:Show HN: Test your shape rotation skills by whatshisface on Sunday February 20, 2022 @11:42PM (#30412045)
Right-handed rotation is different from left-handed rotation no matter what coordinate system you choose.
Re:Show HN: Test your shape rotation skills by crdrost on Tuesday February 22, 2022 @12:47PM (#30430944)
WLOG the shape starts at the origin (0,0,0), the first kink is at (0, 0, m), and the next point is (x, y, m), where x²+y²=n²

You can always rotate this to (n, 0, m) and view from the +y axis looking down, and it is a right turn.

The L shape is not complex enough to be chiral, but the post is (and you are!) is claiming that you need an extra bit of information to specify “which L, the right handed one or the left handed one?” ... That is a distinctively 2D question.

Re:Show HN: Test your shape rotation skills by emschlr on Monday February 21, 2022 @01:02AM (#30412419)
The keyword is "define"!

You can just define the first turn to be Right no matter how it is oriented.

If you are not happy with that then just rotate the first segment until it looks Right to you. Then label the other turns.

If you are still not happy with the word Right to denote the first term then just make up new notation. Define the first turn to be 1. Use numbers to denote turns if you object to using Left and Right.

Re:Show HN: Test your shape rotation skills by kuhewa on Monday February 21, 2022 @05:18AM (#30413998)
> No it can’t, not in 3D... it is just a turn

Not if it is chiral. then whatever turn is defined as right is not left