예제 #1
0
        public List <Command> Post([FromBody] JToken json)
        {
            var boardStatus = json.ToObject <BoardStatus>();

            if (boardStatus.Round == 1)
            {
                _commander.StartingGame();
            }

            // Create commands to do
            var commands = _commander.GetCommands(boardStatus);

            return(commands);
        }
 public string Get()
 {
     return(_commander.StartingGame());
 }