# This is all encapsulated not just for logging but because someday
# we'll probably want to replace it with something like an LCG that
-# can be forward-ported off Python.
+# can be forward-ported off Python. Thee only function we need is one to
+# return a variate uniformly-distributed over [0, 1).
import random
finish(FNOVA)
return
# add in course nova contributes to kicking starship
- bump += (game.sector-hits[-1]).sgn()
+ if hits:
+ bump += (game.sector-hits[-1]).sgn()
elif iquad == 'K': # kill klingon
deadkl(neighbor, iquad, neighbor)
elif iquad in ('C','S','R'): # Damage/destroy big enemies