CodeCombat代碼全記錄(Python學習利器)--邊地森林(第二章)代碼11

Chameleons(僞裝者) # Ogres are disguised as coins or gems! while True: enemy = hero.findNearestEnemy() # If you see an enemy - attack it: if enemy: hero.attack(enemy) item = hero
相關文章
相關標籤/搜索