Example #1
0
 def test_outcomes_draw(self):
     game = TicTacToe([['X', 'X', 'O'], ['O', 'O', 'X'], ['X', 'O', 'X']])
     self.assertEqual(game.outcomes(), ['D', 'D'])
Example #2
0
 def test_outcomes_win_second_player(self):
     game = TicTacToe([['X', 'X', ' '], ['O', 'O', 'O'], [' ', ' ', 'X']])
     self.assertEqual(game.outcomes(), ['L', 'W'])