Example #1
0
 def test_can_player_win(self):
     self.assertEqual(model.can_player_win(model.X), None)
     self.assertEqual(model.can_player_win(model.O), None)
Example #2
0
def can_win():
    """Return tuple representing space"""
    global computer_flag
    return model.can_player_win(computer_flag) or can_opponent_win()