def test_ball(self): ball = rlfl.project_ball(self.map, ORIGOS[1], ORIGOS[4], 2) self.assertEqual(32, len(ball)) ball = rlfl.project_ball(self.map, ORIGOS[1], ORIGOS[4], -2) self.assertEqual(17, len(ball))
def show_ball(self, source, target, rad=2, rng=-1, flags=0): ball = rlfl.project_ball(self.mapnum, self.origos[source], self.origos[target], rad, rng, flags) self.print_map(ball, self.origos[source], self.origos[target])