Exemplo n.º 1
0
 def testThreeEast2(self):
   A = hw.createA(3, 4, 'XXOXXXOOOOOO')
   assert True == hw.inarow_3east('O',2,1,A)
Exemplo n.º 2
0
 def testNSouth2(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
   assert True == hw.inarow_Nsouth('O',1,1,A,4)
Exemplo n.º 3
0
 def testNEast2(self):
     A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
     self.assertEqual(True, hw.inarow_Neast('O', 1, 3, A, 2))
Exemplo n.º 4
0
 def testNSouth2(self):
     A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
     self.assertEqual(True, hw.inarow_Nsouth('O', 1, 1, A, 4))
Exemplo n.º 5
0
 def testThreeSouth1(self):
     A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX')
     self.assertEqual(True, hw.inarow_3south('X', 0, 0, A))
Exemplo n.º 6
0
 def testThreeSouthEast4(self):
     A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX')
     self.assertEqual(False, hw.inarow_3southeast('X', 2, 2, A))
Exemplo n.º 7
0
 def testNSouthEast1(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert True == hw.inarow_Nsoutheast('X',1,1,A,4)
Exemplo n.º 8
0
 def testNNorthEast1(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
     self.assertEqual(True, hw.inarow_Nnortheast('X', 4, 0, A, 5))
Exemplo n.º 9
0
 def testNSouth3(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
   assert False == hw.inarow_Nsouth('O',0,1,A,6)
Exemplo n.º 10
0
 def testNSouth4(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
   assert True == hw.inarow_Nsouth('X',4,3,A,1)
Exemplo n.º 11
0
 def testNSouth2(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
   self.assertEqual(True, hw.inarow_Nsouth('O',1,1,A,4))
Exemplo n.º 12
0
 def testNSouth1(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
   self.assertEqual(False, hw.inarow_Nsouth('X',0,0,A,5))
Exemplo n.º 13
0
 def testThreeEast2(self):
   A = hw.createA(3, 4, 'XXOXXXOOOOOO')
   self.assertEqual(True, hw.inarow_3east('O',2,1,A))
Exemplo n.º 14
0
 def testNSouth4(self):
     A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
     self.assertEqual(True, hw.inarow_Nsouth('X', 4, 3, A, 1))
Exemplo n.º 15
0
 def testNSouthEast2(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert False == hw.inarow_Nsoutheast('O',0,1,A,3)
Exemplo n.º 16
0
 def testNSouthEast3(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
     self.assertEqual(True, hw.inarow_Nsoutheast('O', 0, 1, A, 2))
Exemplo n.º 17
0
 def testNSouthEast3(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert True == hw.inarow_Nsoutheast('O',0,1,A,2)
Exemplo n.º 18
0
 def testNNorthEast3(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
     self.assertEqual(False, hw.inarow_Nnortheast('O', 2, 0, A, 2))
Exemplo n.º 19
0
 def testNSouthEast4(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
   assert False == hw.inarow_Nsoutheast('X',3,0,A,2)
Exemplo n.º 20
0
 def testThreeSouth4(self):
     A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX')
     self.assertEqual(False, hw.inarow_3south('O', 42, 42, A))
Exemplo n.º 21
0
 def testNNorthEast1(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
   assert True == hw.inarow_Nnortheast('X',4,0,A,5)
Exemplo n.º 22
0
 def testThreeEast1(self):
     A = hw.createA(3, 4, 'XXOXXXOOOOOO')
     self.assertEqual(False, hw.inarow_3east('X', 0, 0, A))
Exemplo n.º 23
0
 def testNNorthEast2(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
   assert True == hw.inarow_Nnortheast('O',4,1,A,4)
Exemplo n.º 24
0
 def testNEast4(self):
     A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
     self.assertEqual(True, hw.inarow_Neast('O', 4, 0, A, 5))
Exemplo n.º 25
0
 def testNNorthEast3(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
   assert False == hw.inarow_Nnortheast('O',2,0,A,2)
Exemplo n.º 26
0
 def testNEast4(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
   self.assertEqual(True, hw.inarow_Neast('O',4,0,A,5))
Exemplo n.º 27
0
 def testNNorthEast4(self):
   A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
   assert False == hw.inarow_Nnortheast('X',0,3,A,1)
Exemplo n.º 28
0
 def testNSouth1(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
   assert False == hw.inarow_Nsouth('X',0,0,A,5)
Exemplo n.º 29
0
 def testThreeEast4(self):
   A = hw.createA(3, 4, 'XXOXXXOOOOOO')
   assert False == hw.inarow_3east('O',2,2,A)
Exemplo n.º 30
0
 def testThreeEast2(self):
     A = hw.createA(3, 4, 'XXOXXXOOOOOO')
     self.assertEqual(True, hw.inarow_3east('O', 2, 1, A))
Exemplo n.º 31
0
 def testThreeSouth1(self):
   A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX')
   assert True == hw.inarow_3south('X',0,0,A)
Exemplo n.º 32
0
 def testNSouthEast1(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
     self.assertEqual(True, hw.inarow_Nsoutheast('X', 1, 1, A, 4))
Exemplo n.º 33
0
 def testThreeSouth3(self):
   A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX')
   assert False == hw.inarow_3south('X',1,3,A)
Exemplo n.º 34
0
 def testNSouthEast4(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX')
     self.assertEqual(False, hw.inarow_Nsoutheast('X', 3, 0, A, 2))
Exemplo n.º 35
0
 def testThreeSouth4(self):
   A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX')
   assert False == hw.inarow_3south('O',42,42,A)
Exemplo n.º 36
0
 def testNNorthEast2(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
     self.assertEqual(True, hw.inarow_Nnortheast('O', 4, 1, A, 4))
Exemplo n.º 37
0
 def testThreeSouthEast3(self):
   A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX')
   assert True == hw.inarow_3southeast('O',0,1,A)
Exemplo n.º 38
0
 def testNNorthEast4(self):
     A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX')
     self.assertEqual(False, hw.inarow_Nnortheast('X', 0, 3, A, 1))
Exemplo n.º 39
0
 def testThreeEast1(self):
   A = hw.createA(3, 4, 'XXOXXXOOOOOO')
   assert False == hw.inarow_3east('X',0,0,A)
Exemplo n.º 40
0
 def testThreeSouth3(self):
     A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX')
     self.assertEqual(False, hw.inarow_3south('X', 1, 3, A))
Exemplo n.º 41
0
 def testThreeSouthEast4(self):
   A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX')
   assert False == hw.inarow_3southeast('X',2,2,A)
Exemplo n.º 42
0
 def testThreeSouthEast3(self):
     A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX')
     self.assertEqual(True, hw.inarow_3southeast('O', 0, 1, A))
Exemplo n.º 43
0
 def testThreeNorthEast2(self):
   A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX')
   assert True == hw.inarow_3northeast('O',3,0,A)
Exemplo n.º 44
0
 def testThreeNorthEast2(self):
     A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX')
     self.assertEqual(True, hw.inarow_3northeast('O', 3, 0, A))
Exemplo n.º 45
0
 def testThreeNorthEast4(self):
   A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX')
   assert False == hw.inarow_3northeast('X',3,3,A)
Exemplo n.º 46
0
 def testThreeNorthEast4(self):
     A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX')
     self.assertEqual(False, hw.inarow_3northeast('X', 3, 3, A))
Exemplo n.º 47
0
 def testNEast2(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
   assert True == hw.inarow_Neast('O',1,3,A,2)
Exemplo n.º 48
0
 def testNEast3(self):
     A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
     self.assertEqual(False, hw.inarow_Neast('X', 3, 2, A, 4))
Exemplo n.º 49
0
 def testNEast3(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
   assert False == hw.inarow_Neast('X',3,2,A,4)
Exemplo n.º 50
0
 def testNSouth1(self):
     A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
     self.assertEqual(False, hw.inarow_Nsouth('X', 0, 0, A, 5))
Exemplo n.º 51
0
 def testNEast4(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
   assert True == hw.inarow_Neast('O',4,0,A,5)
Exemplo n.º 52
0
 def testNSouth3(self):
     A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO')
     self.assertEqual(False, hw.inarow_Nsouth('O', 0, 1, A, 6))
Exemplo n.º 53
0
 def testNEast3(self):
   A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO')
   self.assertEqual(False, hw.inarow_Neast('X',3,2,A,4))