Commit 6c464628 authored by Ahmad Reza's avatar Ahmad Reza
Browse files

Self to Sim

parent 95dc68ff
......@@ -16,11 +16,11 @@ S = 6 # S for stop and not south
direction = [E, SE, SW, W, NW, NE]
def scenario(self, world):
def scenario(sim, world):
"""
All the magic starts from here
:param self: The object instance of the sim.py
:param sim: The object instance of the sim.py
:param world: The object instance of the created world
"""
two_particle_inverse_walk(world)
......
......@@ -13,8 +13,8 @@ S = 6 # S for stop and not south
direction = [E, SE, SW, W, NW, NE]
def scenario(self, world):
def scenario(sim, world):
particles = []
particles = world.get_particle_coords_map()[(0, 0)].within_scan_for_aim(hop=5)
particles = world.get_particle_coords_map()[(0, 0)].scan_for_aim_in(hop=5)
for particle in particles:
print(particle.coords)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment