예제 #1
0
    def testnotationJeu(self):

        init = Jeu("Hollande", " Obama", contreIa=False)

        assert init.notation(0) == 0
        assert init.notation(1) == 0
        init.joueur2.nombreCapture = 5
        init.joueur1.nombreCapture = 2
        assert init.notation(0) == -60
        assert init.notation(1) == 60

        init.plateau.cases[2].graines = 2
        assert init.notation(0) == -62