示例#1
0
 public GreedyNPly(Board board, Color color, BoardEval boardEval = BoardEval.Simple, int n = 3) : base(board,
                                                                                                       color, "Greedy " + n + " ply AI")
 {
     if (n < 0)
     {
         throw new ArgumentException("n has to be larger than 3");
     }
     _n         = n;
     _randomAi  = new RandomAI(board, color);
     _boardEval = boardEval;
 }
示例#2
0
 public Greedy1Ply(Board board, Color color, BoardEval boardEval = BoardEval.Simple) : base(board, color,
                                                                                            "Greedy 1ply AI")
 {
     _randomAi  = new RandomAI(board, color);
     _boardEval = boardEval;
 }
示例#3
0
 public Greedy1Ply(Greedy1Ply player, Board board) : base(player, board)
 {
     _randomAi  = new RandomAI(board, player.Color);
     _boardEval = player._boardEval;
 }
示例#4
0
 public RandomAI(RandomAI randomAi, Board board) : base(randomAi, board)
 {
     _random = randomAi._random;
 }
示例#5
0
 public RandomAI(RandomAI randomAi) : base(randomAi)
 {
     _random = randomAi._random;
 }