Exemple #1
0
 def test_break_one_tile(self):
     wall = Wall(AzulEnv.NUM_COLORS)
     self.assertEqual(wall.break_tiles(1), -1)
     self.assertEqual(wall.break_tiles(1), -1)
     self.assertEqual(wall.break_tiles(1), -2)
     self.assertEqual(wall.break_tiles(1), -2)
     self.assertEqual(wall.break_tiles(1), -2)
     self.assertEqual(wall.break_tiles(1), -3)
     self.assertEqual(wall.break_tiles(1), -3)
Exemple #2
0
 def test_break_three_tiles(self):
     wall = Wall(AzulEnv.NUM_COLORS)
     self.assertEqual(wall.break_tiles(3), -4)
     self.assertEqual(wall.break_tiles(3), -7)
     self.assertEqual(wall.break_tiles(3), -3)
Exemple #3
0
 def test_break_two_tiles(self):
     wall = Wall(AzulEnv.NUM_COLORS)
     self.assertEqual(wall.break_tiles(2), -2)
     self.assertEqual(wall.break_tiles(2), -4)
     self.assertEqual(wall.break_tiles(2), -5)
     self.assertEqual(wall.break_tiles(2), -3)
Exemple #4
0
 def test_break_five_tiles(self):
     wall = Wall(AzulEnv.NUM_COLORS)
     self.assertEqual(wall.break_tiles(5), -8)
     self.assertEqual(wall.break_tiles(5), -6)