def test_jump_rival_king(self): factor = -1 king = pieces.King(True, 8, 8) self.assertEqual(-5, score.jump_piece(king, factor))
def test_jump_rival_queen(self): factor = -1 queen = pieces.Queen(True, 8, 8) self.assertEqual(-6, score.jump_piece(queen, factor))
def test_jump_rival_bishop(self): factor = -1 bishop = pieces.Bishop(True, 8, 8) self.assertEqual(-8, score.jump_piece(bishop, factor))
def test_jump_rival_rook(self): factor = -1 rook = pieces.Rook(True, 8, 8) self.assertEqual(-9, score.jump_piece(rook, factor))
def test_jump_rival_horse(self): factor = -1 horse = pieces.Horse(True, 8, 8) self.assertEqual(-7, score.jump_piece(horse, factor))