Exemplo n.º 1
0
	def send_matchmaker_compile_info(self, path, username, game_id, submission_id):
		""" Send relevant compile info to matchmaker """
		filepath = path + "compiled" + config.delimiter + submission_id
		content = username + "\n" + game_id + "\n" + submission_id + "\n"
		with open (filepath, 'w') as fo:
			fo.write(content)
		comms.send_file_matchmaker_ready(filepath, config.matchmaker_path)
Exemplo n.º 2
0
def request_match(worker_file):
	""" Nothing to do, ask for a match. This function should be renamed """
	comms.send_file_matchmaker_ready(worker_file, config.matchmaker_path)