mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -08:00
Original source downloaded from Vintage Basic.
Conversion to MiniScript.
Ways to play:
- Command-Line MiniScript: Download for your system from https://miniscript.org/cmdline/, install, and then run the program with a command such as:
miniscript horserace.ms
- Mini Micro: Download Mini Micro from https://miniscript.org/MiniMicro/, launch, and then click the top disk slot and chose "Mount Folder..." Select the folder containing the MiniScript program and this README file. Then, at the Mini Micro command prompt, enter:
load "horserace"
run
Porting Notes
-
The original program, designed to be played directly on a printer, drew a track 27 rows long. To fit better on modern screens, I've shortened the track to 23 rows. This is adjustable via the "trackLen" value assigned on line 72.
-
Also because we're playing on a screen instead of a printer, I'm clearing the screen and pausing briefly before each new update of the track. This is done via the
clearAPI when running in Mini Micro, or by using a VT100 escape sequence in other contexts.