"Register a phaser hit on Klingons and Romulans."
w = Coord()
skip(1)
- for (kk, wham) in enumerate(hits):
+ kk = 0
+ for wham in hits:
if wham == 0:
continue
dustfac = randreal(0.9, 1.0)
global linecount
sys.stdout.write('\n')
proutn(prompt)
- raw_input()
+ if not replayfp:
+ raw_input()
sys.stdout.write('\n' * rows)
linecount = 0
legend = "unknown"
logfp.write("#curses: setwnd(%s)\n" % legend)
curwnd = wnd
- curses.curs_set(wnd == fullscreen_window or wnd == message_window or wnd == prompt_window)
+ # Some curses implementations get confused when you try this.
+ try:
+ curses.curs_set(wnd in (fullscreen_window, message_window, prompt_window))
+ except curses.error:
+ pass
def clreol():
"Clear to end of line -- can be a no-op in tty mode"
--- /dev/null
+sst2k: seed set to 1329775764
+
+
+-SUPER- STAR TREK
+
+Would you like a regular, tournament, or saved game? # recorded by esr@snark on Mon Feb 20 17:09:24 2012
+r
+Would you like a Short, Medium, or Long game? s
+Are you a Novice, Fair, Good, Expert, or Emeritus player? g
+Choose your game style (plain, almy, fancy or just press enter): f
+
+
+Stardate 2149.
+
+22 Klingons.
+An unknown number of Romulans.
+And one (GULP) Super-Commander.
+7 stardates.
+5 starbases in 4 - 8 4 - 7 2 - 1 1 - 1 8 - 8
+
+The Enterprise is currently in Quadrant 2 - 7 Sector 4 - 5
+
+Good Luck!
+ YOU'LL NEED IT.
+COMMAND> phasers
+
+Weapons Officer Sulu- "High-speed shield control enabled, sir."
+Manual or automatic? auto
+Phasers locked on target. Energy available: 4800.00
+3064 units required. Units to fire= 4800
+
+Shields lowered.
+
+219 unit hit on Klingon at Sector 4 - 7
+***Klingon at Sector 4 - 7 destroyed.
+192 unit hit on Klingon at Sector 10 - 1
+***Mr. Spock- "Captain, the vessel at Sector 10 - 1
+ has just lost its firepower."
+708 unit hit on Klingon at Sector 6 - 7
+***Klingon at Sector 6 - 7 destroyed.
+244 unit hit on Klingon at Sector 10 - 1
+***Klingon at Sector 10 - 1 destroyed.
+271 unit hit on Klingon at Sector 7 - 2
+***Klingon at Sector 7 - 2 destroyed.
+279 unit hit on Commander at Sector 6 - 3
+2175 expended on empty space.
+
+Shields raised.
+Weapons officer Sulu- "Phasers overheated, sir."
+
+27 unit hit from Klingon at 8 - 6
+
+26 unit hit from Klingon at 9 - 5
+
+
+[CONTINUE?]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+It is stardate 2149.8.
+
+The Enterprise has been destroyed in battle.
+
+Dulce et decorum est pro patria mori.
+The Federation will be destroyed.
+
+
+Your score --
+ 0.00 Klingons per stardate 0
+ 1 ship(s) lost or destroyed -100
+Penalty for getting yourself killed -200
+
+TOTAL SCORE -300
+
+May the Great Bird of the Galaxy roost upon your home planet.