Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What category do you think this would best belong in? I watched the trailer but it wasn't super clear to me how the gameplay worked. Looks like you can move chests and keys around, but not the room itself? What's the logic/programming angle?


So you enter a room via a chest, but can also move a chest around and even take it out of the current room. And the state of room is (mostly) reset once you enter the same room again, so you can duplicate a chest provided that it was once in some other chest. Crucially, some chest refers to the existing room---you can often infinitely recurse into the same room again and again (hence the name of the game). Each level of recursed room keeps its contents until the exit, and is distinct from other levels even though they all share the same room structure.

Scheme-stained glasses will translate these mechanics as follows: a chest is a function and a visible room is a scope formed by a function invocation. So it is obvious that entering the same chest again won't (mostly) keep existing objects and nested rooms have distinct states. As the game progresses, you will find various objects that interact with typical function scopes, and many of them have analogies in Scheme or similar languages. For example, I think there was an object that corresponds to an one-shot continuation!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: