• Stars
    star
    16
  • Rank 1,311,288 (Top 26 %)
  • Language
    Haskell
  • Created over 4 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An interactive fiction (text adventure) library in Haskell, inspired by Inform7.

yaifl

GitHub CI MIT license

Yaifl (Yet Another Interactive Fiction Library) is a Haskell DSL for writing parser-based text adventures (interactive fiction). It is heavily based off the excellent Inform 7, a language for writing interactive fiction in literate English.

This project is an adage to Inform 7, but without the layer of requiring the code to be writeable in literate English sentences. It also aims to be more generalised as a base for procedural generation of large worlds, rather than of hand-crafted small worlds - for instance, the Inform 7 logic for collecting items to list in a "you can also see" paragraph iterates through every item in the game!

Examples (and tests) will be taken from the Inform 7 examples.