Пример #1
0
/*
 A Board Node represents a cell on the game board. It contains adjacency relationships between 
 the given cell and its neighbors, the token contained by the cell, it’s position on the board 
 (row, column), and a score. This score is assigned through a heuristic process which aims to 
 quantify the quality of an empty node, i.e. a potential move.
 The Board Network is a 2 dimensional array of Board Nodes.  It is a reflection of the 
 current state of the Board object it is created from.
The Possible Moves available in a Board Network is the List of all its empty nodes.
*/



private int[] hardMove()
{
AIBoard aiBoard = new AIBoard(gameBoard);
return aiBoard.Decision();
}
Пример #2
0
/*
 * A Board Node represents a cell on the game board. It contains adjacency relationships between
 * the given cell and its neighbors, the token contained by the cell, it’s position on the board
 * (row, column), and a score. This score is assigned through a heuristic process which aims to
 * quantify the quality of an empty node, i.e. a potential move.
 * The Board Network is a 2 dimensional array of Board Nodes.  It is a reflection of the
 * current state of the Board object it is created from.
 * The Possible Moves available in a Board Network is the List of all its empty nodes.
 */



        private int[] hardMove()
        {
            AIBoard aiBoard = new AIBoard(gameBoard);

            return(aiBoard.Decision());
        }