【轉載】網易極客戰記官方攻略-地牢-櫥櫃裏的骷髏

關卡鏈接:

https://codecombat.163.com/play/level/cupboards-of-kithgard編程

誰知道什麼樣的恐怖事情潛伏在 Kithgard 的櫥櫃裏?ide

簡介:

你能夠在 while-true循環 前執行任何動做。ui

hero.moveUp;
while True:
    hero.attack("Brak")

默認代碼

# 周圍可能有東西能幫到你。
# 首先,移動到櫥櫃。
# 而後,使用while-true循環攻擊"Cupboard"(櫥櫃)。

概覽

你不可能一下解決太多的食人魔守衛,不過你可能會在「櫥櫃」裏找到些什麼有用的東西?code

首先移動到 "Cupboard" 附近(站在紅 X 上)。但它看起來好像上鎖了,因此你須要用 while-true 循環來重複攻擊「櫥櫃」,以此破開它。blog

櫥櫃裏的骷髏 解法

# 周圍可能有東西能幫到你。
# 首先,移動到櫥櫃。
hero.moveUp()
hero.moveRight(2)
hero.moveRight(2)
而後,使用while-true循環攻擊"Cupboard"(櫥櫃)。
while True:
    hero.attack("Cupboard")

 

相關文章
相關標籤/搜索