X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.py;h=89e2cce46225144fb9b906a2e6789325d831737a;hp=9785eb7bf215d6a78450cddc52a3cc0713c79bbe;hb=7bd7a884799555ab23f60b565f0906f17d22c385;hpb=5ce1b0128a5e4866b3b21a9b66f2da935dc22b05 diff --git a/src/sst.py b/src/sst.py index 9785eb7..89e2cce 100644 --- a/src/sst.py +++ b/src/sst.py @@ -3620,8 +3620,11 @@ def cgetline(): else: if replayfp and not replayfp.closed: line = replayfp.readline() + if line == '': + prout("*** Replay finished") + replayfp.close() else: - line = raw_input() + line = raw_input("COMMAND> ") if logfp: logfp.write(line + "\n") return line @@ -6505,7 +6508,6 @@ def makemoves(): chew() setwnd(prompt_window) clrscr() - proutn("COMMAND> ") if scan() == IHEOL: if game.options & OPTION_CURSES: makechart() @@ -6624,10 +6626,6 @@ def makemoves(): game.alldone = True # quit the game elif cmd == "HELP": helpme() # get help - elif cmd == "SEED": # set random-number seed - key = scan() - if key == IHREAL: - seed = int(round(aaitem)) #ifdef BSD_BUG_FOR_BUG # elif cmd == "VISUAL": # visual() # perform visual scan