def test_get_value_when_white_is_winning(self): board = Board(False) board.load_fen( "rnbqkbnr/ppppp1pp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1") self.assertGreater(board.get_value(), 0)
def test_get_value_when_black_is_winning(self): board = Board(False) board.load_fen( "rnbqkbnr/pppppppp/8/8/8/8/PPPP1PPP/RNBQKBNR w KQkq - 0 1") self.assertLess(board.get_value(), 0)
def test_initial_get_value(self): board = Board(True) self.assertEqual(board.get_value(), 0)