home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Refactor TUI drawing.
[plomrogue2-experiments]
/
new2
/
rogue_chat.py
1
#!/usr/bin/env python3
2
from plomrogue.game import Game
3
from plomrogue.io_websocket import PlomWebSocketServer
4
import sys
5
6
if len(sys.argv) != 2:
7
print('wrong number of arguments, expected one (save file)')
8
exit(1)
9
savefile = sys.argv[1]
10
game = Game(savefile)
11
game.io.run_loop_with_server(8000, PlomWebSocketServer)