public static exampleMiniMaxBoard makeNormalStartPosition()
        {
            exampleMiniMaxBoard newBoard = new exampleMiniMaxBoard(gameType.normal);

            newBoard.makeStartPosition();

            return newBoard;
        }
Beispiel #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;
        }