CodeCombat(极客战记)背靠背代码-python

CodeCombat(极客战记)背靠背代码-python

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


这里写图片描述

# 待在中间防守!
while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        # 亦或主动出击...
        hero.attack(enemy)
        pass
    else:
        # 亦或回到你的阵地防守。
        hero.moveXY(40, 34)
        pass

猜你喜欢

转载自blog.csdn.net/hqj_email/article/details/81291500