Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Rule-Based Programming in Interactive Fiction (eblong.com)
29 points by todsacerdoti on Jan 3, 2022 | hide | past | favorite | 2 comments


This was written in 2009, subsequently there is Dialog: https://linusakesson.net/dialog/index.php which is a meld of Prolog (!) with IF and it's very, very nice to program in.


>> The parser and game logic are all one mass of loops and gotos. Nobody would consider writing a complex program that way today.

No, of course not. Today it would be done as a 1000-line case statements where each case jumps off to another case statement.

Sooo much better that way! /s




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: