projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add CURSES command.
[super-star-trek.git]
/
sst.py
diff --git
a/sst.py
b/sst.py
index a9aa1a4b53e005fb82d0c95dd3bd8cd8fd7bd0f8..3b00bd6dc994c64f2e2a94443f6e1c448ab4ace8 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-6161,6
+6161,7
@@
commands = [
("QUIT", 0),
("HELP", 0),
("SCORE", 0),
("QUIT", 0),
("HELP", 0),
("SCORE", 0),
+ ("CURSES", 0),
("", 0),
]
("", 0),
]
@@
-6381,6
+6382,9
@@
def makemoves():
helpme() # get help
elif cmd == "SCORE":
score() # see current score
helpme() # get help
elif cmd == "SCORE":
score() # see current score
+ elif cmd == "CURSES":
+ game.options |= (OPTION_CURSES | OPTION_COLOR)
+ iostart()
while True:
if game.alldone:
break # Game has ended
while True:
if game.alldone:
break # Game has ended