예제 #1
0
        public async Task <IHttpActionResult> ComputeBoardFor([FromBody] GameBoard board)
        {
            await GameEngineInstance.ComputeBoardFor(board, board.Token);

            return(Ok());
        }
예제 #2
0
        public async Task <IHttpActionResult> GetBoardResultsFor(Guid sessionToken)
        {
            var result = await GameEngineInstance.GetBoardResultsFor(sessionToken);

            return(Ok(result));
        }
예제 #3
0
        public async Task <IHttpActionResult> IsBoardComputationFinished(Guid sessionToken)
        {
            var result = await GameEngineInstance.IsBoardComputationFinished(sessionToken);

            return(Ok(result));
        }