コード例 #1
0
ファイル: tests.py プロジェクト: christian-bixly/Tic-Tac-Toe
 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))
コード例 #2
0
ファイル: tests.py プロジェクト: christian-bixly/Tic-Tac-Toe
 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))