def testThreeEast2(self): A = hw.createA(3, 4, 'XXOXXXOOOOOO') assert True == hw.inarow_3east('O',2,1,A)
def testNSouth2(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO') assert True == hw.inarow_Nsouth('O',1,1,A,4)
def testNEast2(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO') self.assertEqual(True, hw.inarow_Neast('O', 1, 3, A, 2))
def testNSouth2(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO') self.assertEqual(True, hw.inarow_Nsouth('O', 1, 1, A, 4))
def testThreeSouth1(self): A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX') self.assertEqual(True, hw.inarow_3south('X', 0, 0, A))
def testThreeSouthEast4(self): A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX') self.assertEqual(False, hw.inarow_3southeast('X', 2, 2, A))
def testNSouthEast1(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX') assert True == hw.inarow_Nsoutheast('X',1,1,A,4)
def testNNorthEast1(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX') self.assertEqual(True, hw.inarow_Nnortheast('X', 4, 0, A, 5))
def testNSouth3(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO') assert False == hw.inarow_Nsouth('O',0,1,A,6)
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))
def testNSouth4(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO') self.assertEqual(True, hw.inarow_Nsouth('X', 4, 3, A, 1))
def testNSouthEast2(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX') assert False == hw.inarow_Nsoutheast('O',0,1,A,3)
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 testNNorthEast3(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX') self.assertEqual(False, hw.inarow_Nnortheast('O', 2, 0, A, 2))
def testNSouthEast4(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX') assert False == hw.inarow_Nsoutheast('X',3,0,A,2)
def testThreeSouth4(self): A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX') self.assertEqual(False, hw.inarow_3south('O', 42, 42, A))
def testNNorthEast1(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX') assert True == hw.inarow_Nnortheast('X',4,0,A,5)
def testThreeEast1(self): A = hw.createA(3, 4, 'XXOXXXOOOOOO') self.assertEqual(False, hw.inarow_3east('X', 0, 0, A))
def testNNorthEast2(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX') assert True == hw.inarow_Nnortheast('O',4,1,A,4)
def testNEast4(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO') self.assertEqual(True, hw.inarow_Neast('O', 4, 0, A, 5))
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))
def testNNorthEast4(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX') assert False == hw.inarow_Nnortheast('X',0,3,A,1)
def testNSouth1(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO') assert False == hw.inarow_Nsouth('X',0,0,A,5)
def testThreeEast4(self): A = hw.createA(3, 4, 'XXOXXXOOOOOO') assert False == hw.inarow_3east('O',2,2,A)
def testThreeEast2(self): A = hw.createA(3, 4, 'XXOXXXOOOOOO') self.assertEqual(True, hw.inarow_3east('O', 2, 1, A))
def testThreeSouth1(self): A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX') assert True == hw.inarow_3south('X',0,0,A)
def testNSouthEast1(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX') self.assertEqual(True, hw.inarow_Nsoutheast('X', 1, 1, A, 4))
def testThreeSouth3(self): A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX') assert False == hw.inarow_3south('X',1,3,A)
def testNSouthEast4(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXXXXOXXXOOOXX') self.assertEqual(False, hw.inarow_Nsoutheast('X', 3, 0, A, 2))
def testThreeSouth4(self): A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX') assert False == hw.inarow_3south('O',42,42,A)
def testNNorthEast2(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX') self.assertEqual(True, hw.inarow_Nnortheast('O', 4, 1, A, 4))
def testThreeSouthEast3(self): A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX') assert True == hw.inarow_3southeast('O',0,1,A)
def testNNorthEast4(self): A = hw.createA(5, 5, 'XOO XXXOXOOOXOXXXOXXXOOXX') self.assertEqual(False, hw.inarow_Nnortheast('X', 0, 3, A, 1))
def testThreeEast1(self): A = hw.createA(3, 4, 'XXOXXXOOOOOO') assert False == hw.inarow_3east('X',0,0,A)
def testThreeSouth3(self): A = hw.createA(4, 4, 'XXOXXXOXXOO OOOX') self.assertEqual(False, hw.inarow_3south('X', 1, 3, A))
def testThreeSouthEast4(self): A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX') assert False == hw.inarow_3southeast('X',2,2,A)
def testThreeSouthEast3(self): A = hw.createA(4, 4, 'XOOXXXOXX XOOOOX') self.assertEqual(True, hw.inarow_3southeast('O', 0, 1, A))
def testThreeNorthEast2(self): A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX') assert True == hw.inarow_3northeast('O',3,0,A)
def testThreeNorthEast2(self): A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX') self.assertEqual(True, hw.inarow_3northeast('O', 3, 0, A))
def testThreeNorthEast4(self): A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX') assert False == hw.inarow_3northeast('X',3,3,A)
def testThreeNorthEast4(self): A = hw.createA(4, 4, 'XOXXXXOXXOXOOOOX') self.assertEqual(False, hw.inarow_3northeast('X', 3, 3, A))
def testNEast2(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO') assert True == hw.inarow_Neast('O',1,3,A,2)
def testNEast3(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO') self.assertEqual(False, hw.inarow_Neast('X', 3, 2, A, 4))
def testNEast3(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO') assert False == hw.inarow_Neast('X',3,2,A,4)
def testNSouth1(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXXOXXXOOOXO') self.assertEqual(False, hw.inarow_Nsouth('X', 0, 0, A, 5))
def testNEast4(self): A = hw.createA(5, 5, 'XXOXXXOOOOOOXXXX XXXOOOOO') assert True == hw.inarow_Neast('O',4,0,A,5)
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))