Commit ad93063e authored by Ahmad Reza Cheraghi's avatar Ahmad Reza Cheraghi
Browse files

Upload New File

parent 3e6599fc
import logging
import random
E = 0
SE = 1
SW = 2
W = 3
NW = 4
NE = 5
S = 6 # S for stop and not south
direction = [E, SE, SW, W, NW, NE]
def scenario(sim, world):
for particle in world.get_particle_list():
particle.move_to(random.choice(direction))
#particle.move_to(W)
if particle.coords in world.get_tile_map_coords():
print("Found Tile")
world.csv_round_writer.success(sim.get_actual_round())
\ No newline at end of file
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