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