[Reserved] Netease Wars geeks Official Guide - Dungeon - Escape

Connection points:

https://codecombat.163.com/play/level/breakout

Dwarf is chasing you, the road ahead was blocked.

Summary:

By attacking the "weak door" release allies, so there is more time to use while-true loop to destroy a stronger door.

The default code

# Rescue your allies, cleared a path flee!

Overview

You need soldiers to protect you, first of all attack "weak door" for her release.

Then take advantage of opportunities for new allies is holding dwarves, using loop while-true attack "door."

Escape Solution

hero.moveRight ()
hero.attack("Weak Door")
hero.moveRight ()
hero.moveDown()
while True:
    hero.attack("Door")
 

Raiders made in the official teaching Wars geeks column, the original address is:

https://codecombat.163.com/news/jikezhanji-taotuo

Geek Wars - learn programming, with play!

Guess you like

Origin www.cnblogs.com/codecombat/p/12085361.html