Exemplo n.º 1
0
        public static exampleMiniMaxBoard makeNormalStartPosition()
        {
            exampleMiniMaxBoard newBoard = new exampleMiniMaxBoard(gameType.normal);

            newBoard.makeStartPosition();

            return newBoard;
        }
Exemplo n.º 2
0
        public boardScorer(exampleMiniMaxBoard board, pieceColour viewpoint)
        {
            int whiteMaterial = addUpMaterial(board.whitePieceSquares);
            int blackMaterial = addUpMaterial(board.blackPieceSquares);

            if (viewpoint == pieceColour.white)
                score = whiteMaterial - blackMaterial;
            else
                score = blackMaterial - whiteMaterial;
        }