import env


def test():
    myenv = env.Env('tbl_TrueData4Test',6)
    first = [True for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    #do not take off
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x,y = (0,0)
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                
                myenv.set_move(i, (x,y))
        myenv.tick()
    print('score %d time %d remain_task %d'%(myenv.score, myenv.time, myenv.remain_task))

def testAStar():
    myenv = env.Env('tbl_TrueData',5)
    first = [True for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    #do not take off
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x,y = (0,0)
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                
                myenv.set_move(i, (x,y))
        myenv.tick()
    print('score %d time %d remain_task %d'%(myenv.score, myenv.time, myenv.remain_task))


if __name__ == '__main__':
    test()
bba6f00c2014881f248285053ed97bb057879a2d
<mask token>


def test():
    myenv = env.Env('tbl_TrueData4Test', 6)
    first = [(True) for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x, y = 0, 0
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                myenv.set_move(i, (x, y))
        myenv.tick()
    print('score %d time %d remain_task %d' % (myenv.score, myenv.time,
        myenv.remain_task))


<mask token>

<mask token>


def test():
    myenv = env.Env('tbl_TrueData4Test', 6)
    first = [(True) for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x, y = 0, 0
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                myenv.set_move(i, (x, y))
        myenv.tick()
    print('score %d time %d remain_task %d' % (myenv.score, myenv.time,
        myenv.remain_task))


def testAStar():
    myenv = env.Env('tbl_TrueData', 5)
    first = [(True) for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x, y = 0, 0
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                myenv.set_move(i, (x, y))
        myenv.tick()
    print('score %d time %d remain_task %d' % (myenv.score, myenv.time,
        myenv.remain_task))


<mask token>

<mask token>


def test():
    myenv = env.Env('tbl_TrueData4Test', 6)
    first = [(True) for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x, y = 0, 0
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                myenv.set_move(i, (x, y))
        myenv.tick()
    print('score %d time %d remain_task %d' % (myenv.score, myenv.time,
        myenv.remain_task))


def testAStar():
    myenv = env.Env('tbl_TrueData', 5)
    first = [(True) for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x, y = 0, 0
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                myenv.set_move(i, (x, y))
        myenv.tick()
    print('score %d time %d remain_task %d' % (myenv.score, myenv.time,
        myenv.remain_task))


if __name__ == '__main__':
    test()

import env


def test():
    myenv = env.Env('tbl_TrueData4Test', 6)
    first = [(True) for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x, y = 0, 0
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                myenv.set_move(i, (x, y))
        myenv.tick()
    print('score %d time %d remain_task %d' % (myenv.score, myenv.time,
        myenv.remain_task))


def testAStar():
    myenv = env.Env('tbl_TrueData', 5)
    first = [(True) for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x, y = 0, 0
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                myenv.set_move(i, (x, y))
        myenv.tick()
    print('score %d time %d remain_task %d' % (myenv.score, myenv.time,
        myenv.remain_task))


if __name__ == '__main__':
    test()

import env


def test():
    myenv = env.Env('tbl_TrueData4Test',6)
    first = [True for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    #do not take off
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x,y = (0,0)
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                
                myenv.set_move(i, (x,y))
        myenv.tick()
    print('score %d time %d remain_task %d'%(myenv.score, myenv.time, myenv.remain_task))

def testAStar():
    myenv = env.Env('tbl_TrueData',5)
    first = [True for x in range(10)]
    while not myenv.end():
        for i in range(10):
            if not myenv.done[i]:
                loc = myenv.locs[i]
                if first[i] and myenv.windspeed_at(loc) >= 15.0:
                    #do not take off
                    continue
                else:
                    first[i] = False
                target = myenv.targets[i]
                x,y = (0,0)
                if loc[0] > target[0]:
                    x = -1
                elif loc[1] > target[1]:
                    y = -1
                elif loc[0] < target[0]:
                    x = 1
                elif loc[1] < target[1]:
                    y = 1
                
                myenv.set_move(i, (x,y))
        myenv.tick()
    print('score %d time %d remain_task %d'%(myenv.score, myenv.time, myenv.remain_task))


if __name__ == '__main__':
    test()