1972 STTR1 in Python
There are newer versions of trek with ever more capabilities, but Mike
Mayfield wrote the original and it seems fitting to convert it to python. Here are instructions as written by teenaged Mike
a half century ago. :-o
I mostly keep output faithful to the original, but I did make some
changes. Should I convert without changing anything? The purist in me says,
yes. The gamer in me says, these things really need changing:
- Added Mike Mayfield's name to opening banner!
- Changed output from upper case only to mixed case.
- Added an 'e' command to end game.
- Modified output of Library Computer torpedo calculation, changing from two
line distance/direction to one line range/bearing, though information is
the same. This makes it easier to read with multiple Klingons in the
quadrant.
- Converted calculations for torpedo and Enterprise movement from complicated
discrete movement logic to much simpler trigonometry.
- Library Computer torpedo course calculation was followed by asking if you
want to use the calculator. I moved the calculator use to its own option
in the Library Computer.
- Minor formatting changes like removing 12-line blank spacing at start.
Should I revert to the original?
To play, please download either or both
- sttr1.py (6 Sep 2024, bug fix) for major OSes with
python installed.
- STTR1.hpappdir.zip (22 Oct 2024, updated
to use tml's CRT-like font) for HP Prime.
For the HP Prime, there are a few steps:
- Drop STTR1.hpappdir.zip into your Prime's Applications folder via
the HP Connectivity Kit.
- You might have to use the Clear soft button to start the game.
Your Prime now includes a Starfleet Academy training app
Short range sensor scan
Long range sensor scan
CAPT Kirk: "Mr. Sulu, divert all available power to shields!"
Mike Markowski
mike.ab3ap@gmail.com