X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=new2%2Frogue_chat.py;h=afaeef9835a52a96f23638d46bd1ce93982f04b4;hb=7d730b5350cc53c3d43b12f14042b1b03a123297;hp=415b8c11299d5ad41e0d170b2d31d39aad85e611;hpb=33bfdaf647c6736d99aadc017ee935f3301d758a;p=plomrogue2-experiments diff --git a/new2/rogue_chat.py b/new2/rogue_chat.py index 415b8c1..afaeef9 100755 --- a/new2/rogue_chat.py +++ b/new2/rogue_chat.py @@ -1,5 +1,11 @@ #!/usr/bin/env python3 from plomrogue.game import Game from plomrogue.io_websocket import PlomWebSocketServer -game = Game() +import sys + +if len(sys.argv) != 2: + print('wrong number of arguments, expected one (save file)') + exit(1) +savefile = sys.argv[1] +game = Game(savefile) game.io.run_loop_with_server(8000, PlomWebSocketServer)