n_particle_in_line.py 241 Bytes
Newer Older
1
2
3
4
5
6
7
from lib.swarm_sim_header import *
import random


def scenario(world):
    amount = 10
    direction = random.choice(world.grid.get_directions_list())
8
    create_matter_in_line(world, world.grid.get_center(), direction, amount, 'location')