Beispiel #1
0
    public HexAIMove GetMove(Game game)
    {
        var moves = HexAIMove.GenerateAllValidMoves(game).ToArray();

        return(moves
               .OrderByDescending(move => Evaluate(move, game))
               .First());
    }
Beispiel #2
0
    public Task <HexAIMove> GetMove(Game game)
    {
        var allmoves = HexAIMove.GenerateAllValidMoves(game).ToArray();

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

        return(Task.FromResult(moves.OrderByDescending(move => Evaluate(move, game)).First()));
    }
Beispiel #4
0
    public HexAIMove GetMove(Game game)
    {
        var allmoves = HexAIMove.GenerateAllValidMoves(game).ToArray();

        return(allmoves[random.Next(0, allmoves.Length)]);
    }