cowiz20/server.py

22 lines
343 B
Python
Raw Permalink Normal View History

2020-04-05 16:00:48 +02:00
#!/usr/bin/env python3
2020-04-01 23:31:36 +02:00
2020-04-05 16:00:48 +02:00
import random
from app_instance import api
from routes import *
import wiz_game
2020-04-01 23:31:36 +02:00
2020-04-13 22:19:16 +02:00
2020-04-05 16:00:48 +02:00
def main():
print("main started")
2020-04-01 23:31:36 +02:00
2020-04-05 16:00:48 +02:00
random.seed()
2020-04-13 22:07:38 +02:00
wiz_game.the_game.start_game()
2020-04-01 23:31:36 +02:00
2020-04-19 17:14:25 +02:00
#api.run(port=8001, address="127.0.0.1")
api.run(port=8001, address="192.168.42.1")
2020-04-01 23:31:36 +02:00
exit(0)
if __name__ == '__main__':
main()