tscizzle / WebBlokus

UI to play Blokus, using https://github.com/tscizzle/Blokus
2 stars 1 forks source link

Flipping and rotating are not intuitive when mixed #2

Closed tscizzle closed 7 years ago

tscizzle commented 7 years ago

The flips and the rotates are confusing because they aren’t normal. When the pieces are flipped, the rotating is weird. And when the pieces are rotated, the flipping is weird.

tscizzle commented 7 years ago

Fixed with a clever thing!

The weirdness comes from toggling a flip while the pieces are rotated onto their side (odd number of rotations). In that case the flip is vertical instead of horizontal. I made it horizontal by adding 2 rotations in this case.

So when the rotations is odd and you toggle a flip, rotate the piece twice, and voila!