PHP 클래스 ManagerAPI, Halite

파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $request ) Init database, sanitize parameters, and check if worker is valid

보호된 메소드들

메소드 설명
botFile ( ) Allow workers to download and post bot files
botHash ( ) Allow workers to get the hash of a bot file so that they know that they downloaded the file correctly
compile ( ) Allow worker to post the result of their compilation
game ( ) Allow workers to post the result of their game
task ( ) Delegate a task to a workers

비공개 메소드들

메소드 설명
getAPIKey ( )
getTrueskillMatchQuality ( $rankingValues )
isValidWorker ( ) Checks HTTP parameters and request IP to make sure that the client provided a valid API key

메소드 상세

__construct() 공개 메소드

Init database, sanitize parameters, and check if worker is valid
public __construct ( $request )

botFile() 보호된 메소드

Allow workers to download and post bot files
protected botFile ( )

botHash() 보호된 메소드

Allow workers to get the hash of a bot file so that they know that they downloaded the file correctly
protected botHash ( )

compile() 보호된 메소드

Allow worker to post the result of their compilation
protected compile ( )

game() 보호된 메소드

Allow workers to post the result of their game
protected game ( )

task() 보호된 메소드

Delegate a task to a workers
protected task ( )