This game was written in BASIC, and then converted to JavaScript using an automatic converter. See the original BASIC source code, or see the generated JavaScript source code.