18 lines
363 B
Python
18 lines
363 B
Python
import argparse
|
|
|
|
def server(host: str='', port: int=7788):
|
|
from library import Library
|
|
lib = Library(host, port)
|
|
lib.serve_forever()
|
|
|
|
def client(playername: str, host: str='localhost', port: int=7788):
|
|
from ui import UI
|
|
ui = UI(playername, host, port)
|
|
ui.loop()
|
|
|
|
def main():
|
|
client("TestPlayer")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|