take_drop_aims.py 557 Bytes
Newer Older
Ahmad Reza's avatar
Ahmad Reza committed
1
2
3
"""
This solution just scans for particles that are within 5 hops range and prints them out.
"""
4
5
#Standard Lib that has to be in each solution
from lib.std_lib import *
Ahmad Reza's avatar
Ahmad Reza committed
6

7
8
def solution(sim):
    if sim.get_actual_round() == 1 :
9
        sim.get_particle_list()[0].take_tile_in(E)
10
    elif sim.get_actual_round() == 2 :
11
        sim.get_particle_list()[0].drop_tile_in(NW)
12
    elif sim.get_actual_round() == 3 :
13
        sim.get_particle_list()[0].take_particle_in(W)
14
    elif sim.get_actual_round() == 4:
15
        sim.get_particle_list()[0].drop_particle_in(SE)
Ahmad Reza's avatar
Ahmad Reza committed
16