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