def main(address, port, bcount): '''Main Function!''' for _ in range(bcount): bot = Node(bot_execution, dataframe=(address, port), Types=[Snake, Apple]) bot.start_async()
def main(port, pcount, bcount): ''' Main Function!''' # pserver physics_node = Node(game_physics, server_port=port, Types=[Snake, Apple]) physics_node.start_async(pcount + bcount) for _ in range(bcount): bot = Node(bot_execution, dataframe=("127.0.0.1", port), Types=[Snake, Apple]) bot.start_async() visualize_node = Node(visualize, dataframe=("127.0.0.1", port), Types=[Snake, Apple]) visualize_node.start_async() physics_node.join()