Show HN: Chess on a Donut/Torus and Deep-Dive

(mchess.io)

24 points | by mannymakes 6 days ago ago

13 comments

  • SomeHacker44 an hour ago ago

    Thanks for sharing!

    Rotating the torus eventually hits singularities and I cannot continue the rotation. Maybe use a different mechanism for rotations that do not suffer from "gimbal lock"?

    Would also be nice to rotate the torus along the circular axis. That is, rotate pieces/rows from inside the doughnut hole to the outside.

  • hazbot a day ago ago

    It's fun to sit down and draw what the board looks like when you cut and flatten the torus before you watch the video!

    Bonus points if you hit upon the other 2D projection that is useful (I didn't)

    • mannymakes 17 hours ago ago

      that'd be a fun puzzle!

  • chedoku 21 hours ago ago

    Shameless plug. If you're into chess-themed puzzles, you might like: https://chedoku.com/blog/chessPuzzles

    • mannymakes 17 hours ago ago

      interesting puzzle collection :)

  • sparrish 20 hours ago ago

    My favorite torus game is Tetris on a Torus

    https://www.benjoffe.com/code/games/torus/

    • mannymakes 17 hours ago ago

      very neat. I'd say this is kinda on top of a torus, and more of a cylinder from the perspective of the Tetris pieces. not sure how you'd play on the surface of a torus, since you need to wrap around vertically too.

      • marco_z 14 hours ago ago

        E.g the pieces from the rows you eliminate reappear at random at the top row.

  • wavemode 20 hours ago ago

    Took me a while to realize it was a 3D torus and I had to drag around to see the whole board lol

    Maybe when the page loads the torus should rotate around a bit

    • mannymakes 17 hours ago ago

      hmmm good idea, maybe we should have an auto-rotate that stops when you interact

      • quuxplusone 3 hours ago ago

        Better than an automatic smooth continuous motion would be an "idle animation": after a few seconds swing the torus somewhat less than 45 degrees in a random direction and let it relax back into the original position. This suggests "the torus can move" without suggesting "the torus moves [only] in this specific way." You need contradict not just the user's intuition "Torus stationary" but much more importantly "Torus non-interactive."

        Likewise, if someone thought the pieces couldn't be moved, you could idly wiggle the king pawn as a hint to pick it up.

        Now, how anybody could look at a chess board and think the pieces were immovable, or look at a 3D torus render and think it was unrotatable, is beyond me. But if it's a real problem, I think idle animation is a good fix.

  • fryz 21 hours ago ago

    looks like the white king/queen aren't on the right colors (queen goes on her color) - confused me a bit when trying to map the space to a 2d board

    • mannymakes 17 hours ago ago

      ahha true, I forgot this was the case. we like the setup this way as it has rotational symmetry, which more naturally extends to supporting 3+ players