Ejemplo n.º 1
0
 public void Execute(TicTacToeState state)
 {
     state.Board[X, Y] = PlayerType;
 }
Ejemplo n.º 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));
        }