You probably have heard of the game The Oregon Trail, at least of the quite famous Apple II version (“You have died of dysentery”). Some of you may even know that there are text-based predecessors written in BASIC for several platforms. In 1978, the BASIC source code of an enhanced version was published in the Creative Computing magazine. So, I thought, how hard can it be to port the ~600 lines of BASIC source code to a more serious programming language like … FORTRAN 77?
Oh boy, that was far less fun than anticipated. But here it is:
The remake is written in ANSI FORTRAN 77 and should therefore be accepted by most FORTRAN compilers. The original BASIC version measured the time the player needed in the hunting/riders parts. Consequently, as the ANSI standard does not feature a
TIME() function or similar, I had to implement some wrapper functions around the extensions provided by the various FORTRAN 77 compilers.
You can even try out the new LLVM-based Flang/F18 compiler to build the game!