Stuga is a classic, Swedish text adventure game originally released in 1978. The first version of the game was written in BASIC on Oden, a DEC-10 mainframe computer at QZ in Stockholm, Sweden. The game was later released for PC with the name changed to Stugan.
In summer 2019 I found out that one of the original authors, Kimmo Eriksson, had found the original source code and released it on his homepage (https://www.kimmoeriksson.se). Unfortunately, I could not find an interpreter compatible with the specific BASIC dialect the game was written in, so I set out to write an an interpreter in JavaScript with enough functionality to run the game (how hard can it be?!).
Several months later, the interpreter is finally complete enough to run most of the game. I've not yet managed to play the whole game through, so there might be catastrophic incompatibilities later in the game!
I've made minimal changes to the game source code. It's more or less only fixing what invalid line breaks, text encodings and very few functions that I've still not implemented in the inter- preter. These functions are mostly related to saving game state which unfortunately is not working anyway.
The BASIC interpreter as well as the code of this website is free software and available on Github: