有没有人会兽人营地这关?
codecombat吧
全部回复
仅看楼主
level 2
qw941213
楼主
2015年07月29日 12点07分
1
level 1
xiejianxlw
用if/else
判断如果有敌人就感觉
负责就开宝箱
2015年08月01日 03点08分
3
level 1
冰旋云少
我1S 就打爆了 那箱子
2015年08月25日 07点08分
4
level 8
转逝的瞬间
# 如果有敌人,则攻击之
# 如果没有敌人,则攻击财宝箱
loop:
# 使用if/else语句
self.attack("Chest")
enemy = self.findNearestEnemy()
if enemy:
self.attack(enemy)
2015年11月04日 02点11分
5
1