Haunted House adventure game from the 1983 Usborne computer book Write Your Own Adventure Programs for Your Microcomputer by Jenny Tyler and Les Howarth (ISBN 0-86020-741-2).
PDF here: http://mocagh.org/loadpage.php?getcompany=usborne-hayes
The original version is in BASIC.
This version was adapted to the Lua programming language (5.1) in May 2014 by Marc Lepage.