public HexAIMove GetMove(Game game) { var moves = HexAIMove.GenerateAllValidMoves(game).ToArray(); return(moves .OrderByDescending(move => Evaluate(move, game)) .First()); }
public Task <HexAIMove> GetMove(Game game) { var allmoves = HexAIMove.GenerateAllValidMoves(game).ToArray(); return(Task.FromResult(allmoves[random.Next(0, allmoves.Length)])); }
public Task <HexAIMove> GetMove(Game game) { var moves = HexAIMove.GenerateAllValidMoves(game).ToArray(); return(Task.FromResult(moves.OrderByDescending(move => Evaluate(move, game)).First())); }
public HexAIMove GetMove(Game game) { var allmoves = HexAIMove.GenerateAllValidMoves(game).ToArray(); return(allmoves[random.Next(0, allmoves.Length)]); }