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:

  1. Added Mike Mayfield's name to opening banner!
  2. Changed output from upper case only to mixed case.
  3. Added an 'e' command to end game.
  4. 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.
  5. Converted calculations for torpedo and Enterprise movement from complicated discrete movement logic to much simpler trigonometry.
  6. 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.
  7. Minor formatting changes like removing 12-line blank spacing at start.
Should I revert to the original?

To play, please download either or both

For the HP Prime, there are a few steps:

  1. Drop STTR1.hpappdir.zip into your Prime's Applications folder via the HP Connectivity Kit.
  2. 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