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)
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)