Example #1
0
 public void Execute(TicTacToeState state)
 {
     state.Board[X, Y] = PlayerType;
 }
Example #2
0
        public override async Task <TicTacToeMove> NextMove(TicTacToeState state, List <TicTacToeMove> allowedMoves)
        {
            TicTacToeState move = aIPlayer.GetNextMove(state, allowedMoves.Select(a => a.StateEnd).ToArray());

            return(allowedMoves.First(a => a.StateEnd == move));
        }