home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use local storage for web client cusotmizations.
[plomrogue2-experiments]
/
new
/
example_server.py
diff --git
a/new/example_server.py
b/new/example_server.py
index fea2f687238c8c2f19176e2a6f29ad9e79fa50b4..87c368f2575e27822d02b1568937a50bd4b4d1c6 100755
(executable)
--- a/
new/example_server.py
+++ b/
new/example_server.py
@@
-1,7
+1,7
@@
#!/usr/bin/env python3
import sys
import os
#!/usr/bin/env python3
import sys
import os
-from plomrogue import Game
+from plomrogue
.game
import Game
if len(sys.argv) != 2:
print('wrong number of arguments, expected one (game file)')
if len(sys.argv) != 2:
print('wrong number of arguments, expected one (game file)')
@@
-19,5
+19,5
@@
if os.path.exists(game_file_name):
print("FILE INPUT LINE %5s: %s" % (i, line), end='')
game.io.handle_input(line, store=False)
else:
print("FILE INPUT LINE %5s: %s" % (i, line), end='')
game.io.handle_input(line, store=False)
else:
- game.io.handle_input('GEN_WORLD Y:16,X:16
bar
')
+ game.io.handle_input('GEN_WORLD Y:16,X:16
42
')
game.io.run_loop_with_server()
game.io.run_loop_with_server()