Interactive Fiction?

Hi, Racket Discourse.

I have been playing around with bags (or multisets) for a while now, and thinking of ways to employ them, I have time and again come back to interactive fiction.

There is this really neat project, Ceptre, which I stumbled across maybe 6 years ago? lurking on lambda-the-ultimate.

See the rope example, for an idea of the novelty.

Has anyone else built, or known of, similar interactive fiction projects in Racket? I feel like this would be (is) fertile ground for PL design.

1 Like

It has been a fertile ground for PL design. See Muddle and Zork:

1 Like

Inform is a more modern PL design for IF. https://ganelson.github.io/inform-website/

1 Like

That's wild. I had no idea about the Zork Implementation Language (or MDL), although I've played Zork on an emulator before.

You might find Creating Languages in Racket ( alt: [Queue] )
It covers creating a text adventure game as a language creation tutorial.

There is also conference presentation but I can’t find it right now.

1 Like

Eitsa, and the document is so pretty :eyes:.

See also the work of lft (Linus
Åkesson)
, who created a
virtual machine
and programming
language
for creating
and running IF.

2 Likes

That's åwesome, thanks. More of what I was looking for :partying_face:

Will be interesting to see where he diverges from Inform, which he states is a big influence. The fact that it's based on Prolog is great, too, because I am quite interested in applying "logic programming" to the domain, à la *kanren.

I had no idea lft had made a VM for text adventures.

His youtube channel is a gold mine - and so is his web-site.