コード例 #1
0
ファイル: worker.py プロジェクト: aerique/aiweb
	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)
コード例 #2
0
ファイル: manager.py プロジェクト: aerique/aiweb
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)