projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecbf2de
)
Python 3 port fix.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 24 Apr 2019 16:56:52 +0000
(12:56 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 24 Apr 2019 16:56:52 +0000
(12:56 -0400)
sst.py
patch
|
blob
|
history
diff --git
a/sst.py
b/sst.py
index daf42f8648484ebda35c3046a79ab05644734a8c..e1a3b1513eaf3c72b74c3dc9787e4f2ee1b4c004 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-836,7
+836,7
@@
def supercommander():
sc = game.state.kscmdr
for (i, base) in enumerate(game.state.baseq):
basetbl.append((i, (base - sc).distance()))
- if
game.state.baseq
> 1:
+ if
len(game.state.baseq)
> 1:
basetbl.sort(key=lambda x: x[1])
# look for nearest base without a commander, no Enterprise, and
# without too many Klingons, and not already under attack.