From: Eric S. Raymond Date: Tue, 15 Aug 2023 08:46:15 +0000 (-0400) Subject: Add test of plain interface and od-fashioned coordinates. X-Git-Tag: 2.8~43 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=5988f0d232e7d2a6721584193dc343ef9c802988;p=super-star-trek.git Add test of plain interface and od-fashioned coordinates. --- diff --git a/sst b/sst index 156868f..beff5c9 100755 --- a/sst +++ b/sst @@ -18,7 +18,7 @@ on how to modify (and how not to modify!) this code. # pylint: disable=multiple-imports import os, sys, math, curses, time, pickle, copy, gettext, getpass -import getopt, socket, locale +import getopt, socket, locale, getpass import codecs # This import only works on Unixes. The intention is to enable @@ -6241,6 +6241,7 @@ def setpassword(): proutn(_("Please type in a secret password- ")) scanner.nexttok() game.passwd = scanner.token + #game.passwd = getpass.getpass("Please type in a secret password- ") if game.passwd is not None: break else: diff --git a/test/test19.chk b/test/test19.chk new file mode 100644 index 0000000..5d9cf7d --- /dev/null +++ b/test/test19.chk @@ -0,0 +1,129 @@ + + +-SUPER- STAR TREK + +Please type in a secret password- # SST2K version 2.7 +# Test plain interface and old-fashioned coordinates +# recorded by esr@snark.thyrsus.com on Tue Aug 15 04:36:52 2023 +foo + + +It is stardate 4349. The Federation is being attacked by +a deadly Klingon invasion force. As captain of the United +Starship U.S.S. Enterprise, it is your mission to seek out +and destroy this invasion force of 10 battle cruisers. +You have an initial allotment of 14 stardates to complete +your mission. As you proceed you may be given more time. + +You will have 4 supporting starbases. +Starbase locations- 8 - 5 4 - 4 5 - 1 2 - 2 + +The Enterprise is currently in Quadrant 3 - 4 Sector 2 - 5 + +Good Luck! +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... ... ... ... ... | +2 | ... .1. 8 6 8 ... ... ... | +3 | ... ... 8 < 7> 2 ... ... ... | +4 | ... ... 7 13 2 ... ... ... | +5 | .1. ... ... ... ... ... ... ... | +6 | ... ... ... ... ... ... ... ... | +7 | ... ... ... ... ... ... ... ... | +8 | ... ... ... ... .1. ... ... ... | + +COMMAND> m 3 7 1 5 +(Manual movement assumed.) + +Helmsman Sulu- "Aye, Sir." + +Enterprise blocked by object at 1 - 5; +Emergency stop required 125 units of energy. +Collision detected +COMMAND> m a 2 10 + +COMMAND> m 3 7 2 1 +(Manual movement assumed.) + +Helmsman Sulu- "Aye, Sir." + +YOU HAVE ATTEMPTED TO CROSS THE NEGATIVE ENERGY BARRIER +AT THE EDGE OF THE GALAXY. THE THIRD TIME YOU TRY THIS, +YOU WILL BE DESTROYED. + +Entering Quadrant 5 - 7. +COMMAND> +COMMAND> m 2 7 5 5 +(Manual movement assumed.) + +Helmsman Sulu- "Aye, Sir." + +YOU HAVE ATTEMPTED TO CROSS THE NEGATIVE ENERGY BARRIER +AT THE EDGE OF THE GALAXY. THE THIRD TIME YOU TRY THIS, +YOU WILL BE DESTROYED. + +[ANNOUNCEMENT ARRIVING...] + +***Enterprise caught in long range tractor beam-- +Enterprise is pulled to Quadrant 2 - 7, Sector 2 - 5 +Shields raised. + +30 unit hit on the Enterprise from Klingon at Sector 5 - 1 + + +Energy left 2538 shields up 80%, torpedoes left 10 +COMMAND> phasers + +Weapons Officer Sulu- "High-speed shield control enabled, sir." +Manual or automatic? a +Phasers locked on target. Energy available: 2338.09 +887 units required. Units to fire= 887 + +Shields lowered. + +136 unit hit on Klingon at Sector 3 - 4 +***Klingon at Sector 3 - 4 destroyed. +364 unit hit on Commander at Sector 5 - 1 +***Mr. Spock- "Captain, the vessel at Sector 5 - 1 + has just lost its firepower." +149 expended on empty space. + +Shields raised. + +Enemy attack reduces shield strength to 80%, torpedoes left 10 +COMMAND> capture + +Beg your pardon, Captain? +COMMAND> m a 4 2 + + +Enemy attack reduces shield strength to 80%, torpedoes left 10 +COMMAND> phasers + +Weapons Officer Sulu- "High-speed shield control enabled, sir." +Manual or automatic? a +Phasers locked on target. Energy available: 1160.95 +53 units required. Units to fire= 53 + +Shields lowered. + +48 unit hit on Commander at Sector 5 - 1 +***Commander at Sector 5 - 1 destroyed. + +Shields raised. +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... ... 2 7 9 | +2 | ... .1. 8 6 8 2 < 1> 3 | +3 | ... ... 8 7 2 4 109 8 | +4 | ... ... 7 13 2 8 3 8 | +5 | .1. ... ... ... ... 1 2 7 | +6 | ... ... ... ... ... 2 8 4 | +7 | ... ... ... ... ... ... ... ... | +8 | ... ... ... ... .1. ... ... ... | + +COMMAND> quit + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test19.log b/test/test19.log new file mode 100644 index 0000000..f73ba95 --- /dev/null +++ b/test/test19.log @@ -0,0 +1,22 @@ +# seed 1692088612 +# arguments regular medium novice plain +# SST2K version 2.7 +# Test plain interface and old-fashioned coordinates +# recorded by esr@snark.thyrsus.com on Tue Aug 15 04:36:52 2023 +foo +chart +m 3 7 1 5 +m a 2 10 +m 3 7 2 1 + +m 2 7 5 5 +phasers +a +887 +capture +m a 4 2 +phasers +a +53 +chart +quit