Ejemplo n.º 1
0
        public Tuple <int, int> GetNextMove(int[,] game, int level, bool whiteTurn)
        {
            logicalBoard.BoardArray = game;
            logicalBoard.drawBo();
            Move move = OthelloMiniMax.GetMove(game, level, whiteTurn);

            Console.WriteLine(move.position);
            return(new Tuple <int, int>(move.position.X, move.position.Y));
        }
Ejemplo n.º 2
0
 public Tuple <int, int> GetNextMove(int[,] game, int level, bool whiteTurn)
 {
     logicalBoard.BoardArray = game;
     try
     {
         currentPossibleMoves = LogicalB.GetPossibleMoves(game, whiteTurn, BOARD_DIMENSIONS);
         Move move = OthelloMiniMax.GetMove(game, level, whiteTurn);
         if (move == null)
         {
             move = new Move(new Point(-1, -1), whiteTurn);
         }
         return(new Tuple <int, int>(move.position.X, move.position.Y));
     }
     catch
     {
         return(new Tuple <int, int>(-1, -1));
     }
 }
Ejemplo n.º 3
0
        public Tuple <int, int> GetNextMove(int[,] game, int level, bool whiteTurn)
        {
            Move move = OthelloMiniMax.GetMove(game, level, whitePlayerTurn);

            return(new Tuple <int, int>(move.position.X, move.position.Y));
        }