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