예제 #1
0
 def test_unique_id_negative_signflip(self):
   test_board = ProductGameBoard(AbstractTranspositionTable())
   test_board.squares = numpy.array([[0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0],
                                     [0, 2, 2, 1, 1, 0], [0, 0, 2, 0, 1, 0],
                                     [0, 2, 0, 2, 2, 0], [0, 0, 0, 1, 1, 2]])
   test_board.bottomFactor = 9
   test_board.topFactor = 9
   self.assertFalse(test_board.unique_id_int() < 0)
예제 #2
0
 def test_unique_id_negative(self):
   test_board = ProductGameBoard(AbstractTranspositionTable())
   test_board.bottomFactor = 9
   test_board.topFactor = 9
   self.assertEqual(80, test_board.unique_id_int())