因為這關(guān)也算復(fù)習(xí)關(guān),我只好再列單詞表了,:)
1 單詞復(fù)習(xí)
code
combat
hero
move
attack
while
loop
true
false
enemy
find
near
2 相關(guān)技能
回顧一下我們已有的技能唄!
findNearestEnemy()
attack()
當(dāng)然,還有最最重要的while True循環(huán)!
3 通關(guān)思路
發(fā)現(xiàn)一個,干掉一個!哈哈
3.1 源代碼
# 在 while true循環(huán)里,使用 findNearestEnemy() 并攻擊!
while True:
enemy = hero.findNearestEnemy()
hero.attack(enemy)
hero.attack(enemy)
A 附注
當(dāng)前地圖:Kithgard地牢
關(guān)卡鏈接:https://codecombat.163.com/play/dungeon
B 同主題文章
極客戰(zhàn)記攻略——Kithgard地牢 | python
極客戰(zhàn)記攻略——深藏的寶石 | python
極客戰(zhàn)記攻略——幽影守衛(wèi) | python
極客戰(zhàn)記攻略——真名實姓 | python
極客戰(zhàn)記攻略——高舉之劍 | python
極客戰(zhàn)記攻略——焰中舞動 | python
極客戰(zhàn)記攻略——kithmaze二度冒險 | python
極客戰(zhàn)記攻略——老對手 | python
極客戰(zhàn)記攻略——名稱大師 | python