def commands():
        gamefile.move(200)
	gamefile.turn_right(90)
	gamefile.stop(100)
	gamefile.move(22)
	gamefile.turn_right(90)
	gamefile.fire()
	gamefile.done()
Beispiel #2
0
def commands():
        gamefile.move(200)
	gamefile.turn_right(90)
	gamefile.stop(100)
	gamefile.move(22)
	gamefile.turn_right(90)
	gamefile.fire(2)
	gamefile.done()
Beispiel #3
0
def commands():
        gamefile.move(180)
	gamefile.fire(2)
        gamefile.stop(180)
        gamefile.fire(2)
	gamefile.turn_left(120)
        gamefile.fire(2)
	gamefile.turn_right(120)
        gamefile.fire(2)
	gamefile.turn_right(120)
        gamefile.fire(2)
	gamefile.turn_left(120)
        gamefile.fire(2)
	gamefile.done()
def commands():
    gamefile.move(100)
    gamefile.lockradar("FREE")
    gamefile.spinradar("LEFT")
    if (healthVal > 40):
        gamefile.turn_left(45)
    gamefile.spinradar("RIGHT")
    if (healthVal > 40):
        gamefile.stop(60)
    gamefile.fire()
    gamefile.move(100)
    if (healthVal > 40):
        gamefile.turn_right(45)
    if (healthVal < 40):
        if (lastTarget > 0):
            gamefile.turn_right(45)
        if (lastTarget < 0):
            gamefile.turn_left(45)

    global healthVal
    healthVal = gamefile.robotHealth()
    gamefile.done()
Beispiel #5
0
def commands():
        gamefile.move(100)
        gamefile.lockradar("FREE")
        gamefile.spinradar("LEFT")
        if (healthVal > 40):
                gamefile.turn_left(45)
        gamefile.spinradar("RIGHT")
        if (healthVal > 40):
                gamefile.stop(60)
	gamefile.fire(2)
	gamefile.move(100)
	if (healthVal > 40):
                gamefile.turn_right(45)
        if (healthVal < 40):
                if (lastTarget > 0):
                        gamefile.turn_right(45)
                if (lastTarget < 0):
                        gamefile.turn_left(45)
                
	
	global healthVal
	healthVal = gamefile.robotHealth()
	gamefile.done()
Beispiel #6
0
def commands():
    gamefile.move(200)
    gamefile.stop(100)
    gamefile.turn_left(90)
    gamefile.done()
Beispiel #7
0
def commands():
        gamefile.move(200)
        gamefile.stop(100)
	gamefile.turn_left(90)
	gamefile.done()