def test_bCmplx_heuristicEmptySpaceCoverage(self): b = getBoardComplex() wVal = heuristicEmptySpaceCvrg(ChessBoard.WHITE, b) bVal = heuristicEmptySpaceCvrg(ChessBoard.BLACK, b) properWhiteVal = -1 + 22 / 36 * 2 properBlackVal = -1 + 22 / 36 * 2 self.assertTrue(wVal == properWhiteVal) self.assertTrue(bVal == properBlackVal)
def test_newB_heuristicEmptySpaceCoverage(self): wVal = heuristicEmptySpaceCvrg(ChessBoard.WHITE, getBoardNew()) bVal = heuristicEmptySpaceCvrg(ChessBoard.BLACK, getBoardNew()) self.assertTrue(wVal == 0) self.assertTrue(bVal == 0)