cowiz20/server.py

23 lines
326 B
Python
Raw 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
import socket
import responder
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-13 22:22:00 +02:00
api.run(port=8001, address="127.0.0.1")
2020-04-01 23:31:36 +02:00
exit(0)
if __name__ == '__main__':
main()