def test_probabilities(self): m2 = Matrix("m2", 2, 2, 1, 0.99, [], [5, 3], [5, 3]) m2.makeMatrix() m2.initiateProbs() cell1 = m2.getL2()[0][0] self.assertEqual(cell1.getProb(), 0.25)
def test_place_wrong_avatar_tile(self): m2 = Matrix("m2", 2, 2, 0, 0) print(m2) m2.makeMatrix() m2.initiateProbs() cell1 = m2.getL2()[0][0] self.assertEqual(cell1.getProb(), 0.25)