Example #1
0
 def test_dgn_rl(self):
     """ test the dgn_rl_checker for winning and loosing conditoin  """
     t = TicTacToe()
     board: List[List[str]] = [['x', 'o', 'x'], ['o', 'x', 'x'],
                               ['o', 'x', 'x']]
     self.assertTrue(t.dgn_rl_checker(board) == (False, ))
     board = [['x', 'o', 'x'], ['o', 'x', 'x'], ['x', ' ', ' ']]