...and argument-setting in replays.
game.options |= OPTION_TTY
seed = int(time.time())
(options, arguments) = getopt.getopt(sys.argv[1:], "cr:s:txV")
- replay = False
for (switch, val) in options:
if switch == '-r':
# pylint: disable=raise-missing-from
seed = eval(seed)
line = replayfp.readline().strip()
arguments += line.split()[2:]
- replay = True
except ValueError:
sys.stderr.write("sst: replay file %s is ill-formed\n"% val)
raise SystemExit(1)
sys.exit(1)
if logfp:
logfp.write("# seed %s\n" % seed)
- logfp.write("# options %s\n" % " ".join(arguments))
+ logfp.write("# arguments %s\n" % " ".join(arguments))
logfp.write("# SST2K version %s\n" % version)
logfp.write("# recorded by %s@%s on %s\n" % \
(getpass.getuser(),socket.getfqdn(),time.ctime()))
game.alldone = False
else:
makemoves()
- if replay:
+ if replayfp:
break
skip(1)
stars()
# seed 1556084761
-# options
+# arguments
# SST2K version 2.4
# Test bringing game up, viewing galaxy, quitting
# recorded by esr@snark.thyrsus.com on Wed Apr 24 01:46:01 2019
# seed 1556101787
-# options regular short good fancy
+# arguments regular short good fancy
# SST2K version 2.4
# Test critical hit on sensors
# recorded by esr@snark.thyrsus.com on Wed Apr 24 06:29:47 2019
# seed 1556102474
-# options regular short good fancy
+# arguments regular short good fancy
# SST2K version 2.4
# Test Tholian boxing us in followed by death by tractor beam
# recorded by esr@snark.thyrsus.com on Wed Apr 24 09:48:31 2019
# seed 1556116333
-# options regular short good fancy
+# arguments regular short good fancy
# SST2K version 2.4
# Test starbase destruction, planet destruction, docking after destruction.
# recorded by esr@snark.thyrsus.com on Fri Aug 11 08:59:1 3 2023
# seed 1556120044
-# options regular short good fancy
+# arguments regular short good fancy
# Test deep-space probes
# recorded by esr@snark.thyrsus.com on Wed Apr 24 11:34:04 2019
chart
# seed 1556121767
-# options regular short good fancy
+# arguments regular short good fancy
# SST2K version 2.4
# Test shuttle landing with no crystals
# recorded by esr@snark.thyrsus.com on Wed Apr 24 12:02:47 2019
# seed 1691789031
-# options regular medium good fancy
+# arguments regular medium good fancy
# SST2K version 2.7
# Test supercommander destruction.
# recorded by esr@snark.thyrsus.com on Fri Aug 11 17:23:51 2023
# seed 1691831923
-# options regular medium novice fancy
+# arguments regular medium novice fancy
# SST2K version 2.7
# Test game-win condition
# recorded by esr@snark.thyrsus.com on Sat Aug 12 05:18:43 2023
# seed 1691779887
-# options regular medium good fancy
+# arguments regular medium good fancy
# SST2K version 2.7
# Test behavior of Tholian
# recorded by esr@snark.thyrsus.com on Fri Aug 11 14:51:27 2023
# seed 1691834337
-# options regular medium novice fancy
+# arguments regular medium novice fancy
# SST2K version 2.7
# Test game timeout condition
# recorded by esr@snark.thyrsus.com on Sat Aug 12 05:58:57 2023
# seed 1556212919
-# options regular short good fancy
+# arguments regular short good fancy
# SST2K version 2.5
# Test loss by energy exhaustion.
# recorded by esr@snark.thyrsus.com on Thu Apr 25 13:21:59 2019
# seed 1691778615
-# options regular medium good fancy
+# arguments regular medium good fancy
# SST2K version 2.7
# Test dilithium mining
# recorded by esr@snark.thyrsus.com on Fri Aug 11 14:30:15 2023
# seed 1556292107
-# options regular short good fancy
+# arguments regular short good fancy
# SST2K version 2.5
# Test multiple critical hits ending in defeat by Supercommander
# recorded by esr@snark.thyrsus.com on Fri Apr 26 11:21:47 2019
# seed 1691765367
-# options
+# arguments
# SST2K version 2.7
# Test death by black hole
# recorded by esr@snark.thyrsus.com on Fri Aug 11 10:49:27 2023
# seed 1691766356
-# options regular medium good fancy
+# arguments regular medium good fancy
# SST2K version 2.7
# Test encounter with Romulan and multiline torpedo firing
# recorded by esr@snark.thyrsus.com on Fri Aug 11 11:05:56 2023
# seed 1691769251
-# options regular medium good fancy
+# arguments regular medium good fancy
# SST2K version 2.7
# Test malformed torpedo command
# recorded by esr@snark.thyrsus.com on Fri Aug 11 11:54:11 2023
# seed 1691774489
-# options regular medium good fancy
+# arguments regular medium good fancy
# SST2K version 2.7
# Test commander destruction and supernova alert
# recorded by esr@snark.thyrsus.com on Fri Aug 11 13:31:26 2023
# seed 1691786582
-# options regular medium good fancy
+# arguments regular medium good fancy
# SST2K version 2.7
# Test behavior when emy is buffered into black hole
# recorded by esr@snark.thyrsus.com on Fri Aug 11 16:43:02 2023