Esempio n. 1
0
    def test_jump_rival_king(self):
        factor = -1
        king = pieces.King(True, 8, 8)

        self.assertEqual(-5, score.jump_piece(king, factor))
Esempio n. 2
0
    def test_jump_rival_queen(self):
        factor = -1
        queen = pieces.Queen(True, 8, 8)

        self.assertEqual(-6, score.jump_piece(queen, factor))
Esempio n. 3
0
    def test_jump_rival_bishop(self):
        factor = -1
        bishop = pieces.Bishop(True, 8, 8)

        self.assertEqual(-8, score.jump_piece(bishop, factor))
Esempio n. 4
0
    def test_jump_rival_rook(self):
        factor = -1
        rook = pieces.Rook(True, 8, 8)

        self.assertEqual(-9, score.jump_piece(rook, factor))
Esempio n. 5
0
    def test_jump_rival_horse(self):
        factor = -1
        horse = pieces.Horse(True, 8, 8)

        self.assertEqual(-7, score.jump_piece(horse, factor))