Ejemplo n.º 1
0
    def test_check_win_condition2(self):
        """ Tests that a win condition is properly updated for black. """
        g = GessGame()
        g._players[0].set_rings([])

        g.check_win_condition()

        self.assertEqual('WHITE_WON', g.game_state)
Ejemplo n.º 2
0
    def test_check_win_condition1(self):
        """ Tests that a win condition is properly updated for white. """
        g = GessGame()
        g._players[1].set_rings([])

        g.check_win_condition()

        self.assertEqual('BLACK_WON', g.game_state)