top | item 46089344

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

24 points| mannymakes | 3 months ago |mchess.io

Hey there! I just finished a youtube video explaining our donut chess in detail: https://youtu.be/iRcfHCPFgkM

So I thought it'd be cool to show it off here too- it can be played around with at mchess.io/donut - you can also set up an AI or online game on the site.

This is all indie dev work from a couple friends and myself.

13 comments

order

hazbot|2 months 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)

SomeHacker44|2 months 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.

sparrish|2 months ago

My favorite torus game is Tetris on a Torus

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

mannymakes|2 months 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.

wavemode|2 months 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|2 months ago

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

fryz|2 months 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|2 months 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