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