networking.py
1 import sys 2 3 4 def send_commands(commands): 5 """ 6 Sends a list of commands to the engine. 7 :param commands: The list of commands to send. 8 :return: nothing. 9 """ 10 print(" ".join(commands)) 11 sys.stdout.flush()
1 import sys 2 3 4 def send_commands(commands): 5 """ 6 Sends a list of commands to the engine. 7 :param commands: The list of commands to send. 8 :return: nothing. 9 """ 10 print(" ".join(commands)) 11 sys.stdout.flush()