Exemple #1
0
 def testNSouthEast4(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
     self.assertEqual(False, hw.inarow_Nsoutheast('X', 3, 0, A, 2))
Exemple #2
0
 def testNSouthEast1(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
     self.assertEqual(True, hw.inarow_Nsoutheast('X', 1, 1, A, 4))
Exemple #3
0
 def testNSouthEast3(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
     self.assertEqual(True, hw.inarow_Nsoutheast('O', 0, 1, A, 2))
 def testNSouthEast3(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert True == hw.inarow_Nsoutheast('O',0,1,A,2)
 def testNSouthEast4(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert False == hw.inarow_Nsoutheast('X',3,0,A,2)
 def testNSouthEast2(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert False == hw.inarow_Nsoutheast('O',0,1,A,3)
 def testNSouthEast1(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert True == hw.inarow_Nsoutheast('X',1,1,A,4)
 def testNSouthEast4(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   self.assertEqual(False, hw.inarow_Nsoutheast('X',3,0,A,2))
 def testNSouthEast3(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   self.assertEqual(True, hw.inarow_Nsoutheast('O',0,1,A,2))
 def testNSouthEast1(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   self.assertEqual(True, hw.inarow_Nsoutheast('X',1,1,A,4))