CodeCombat(极客战记)Mail Interceptor代码-python

CodeCombat(极客战记)Mail Interceptor代码-python

CodeCombat地址
https://codecombat.cn/https://codecombat.163.com/


这里写图片描述

# Intercept all ogre messengers from ambush. 
def ambushAttack(target):
    #  Attack the target if it exists and return to the mark.
    # Write the function:
    if target:
        hero.attack(target)
        hero.moveXY(52, 36)
    pass

while True:
    ogre = hero.findNearestEnemy()
    ambushAttack(ogre)

猜你喜欢

转载自blog.csdn.net/hqj_email/article/details/81516065
今日推荐