Hacker News new | ask | show | jobs
by lmkg 1392 days ago
For a sphere, the location of where you land when you go off the screen is a continuous function of where you started from. If two Pac-Men exit the screen next to each other, they will re-enter the screen next to each other.

The real Pac-Man game is a donut because it's discontinuous at the corners. If two Pac-Men are right next to each other near the top-left corner, and one exits via the top and the other exits via the left, they will end up on opposite sides of the map.

There's a mathematical formalization of this, where the thing you look at is closed paths of Pac-Man leaving a point, traveling around, and returning back to that same point. You group such circuits by whether they can be continuously deformed into each other. The discontinuity at the corners makes two distinct families of circuits, which correspond to traveling on a donut around the circumference vs going through the hole.

1 comments

between your post, and kkwteh's, it makes a lot more sense. Thank you both.