예제 #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)
예제 #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)