Esempio n. 1
0
 def test_x_first_move(self):
     """
     Tests that X moves first given a blank board
     """
     board = [[None, None, None],
              [None, None, None],
              [None, None, None]]
     
     self.assertEqual(char_move_order(board), (x_char, o_char))
Esempio n. 2
0
 def test_o_second_move(self):
     """
     Tests that O moves next after X
     """
     board = [[None, None, None],
              [None, None, None],
              [None, x_char, None]]
     
     self.assertEqual(char_move_order(board), (o_char, x_char))