Twisted Canyon (python) Help

image

Hi everyone. i am new to codecombat. for the Twisted Canyon level, there is no through road on the map. anyway to get to another side? thanks!

Hey @AliciaandZoe!!

You can go over the the borders to go and get the gold,

you just can’t through the fences and wells!!

Cheers,
ColdFire

2 Likes

The Level does not stop you for going through the barriers using:

hero.moveUp()
hero.moveDown()
hero.moveLeft()
hero.moveRight()

and the barriers also do not stop you from attacking enemies!!

Hope this helps,
ColdFire

1 Like

The CodeCombat creators tried to do a 2.5D world, so some of the places the path goes seem to be blocked, but they aren’t. You might just have to use trial and error.

1 Like

Right, twisted canyon has some secret paths so try to walk throughout the whole level

hero.attack("Treasure Chest")
hero.moveUp()
hero.moveDown()
hero.moveRight()
hero.attack("Gate")
hero.moveUp(2)
hero.moveDown(2)
hero.moveLeft(3)
hero.moveUp(2)
hero.moveLeft(2)
enemy = hero.findNearestEnemy()
hero.attack(enemy)
hero.moveRight(2)
hero.moveDown()
hero.moveRight()
hero.moveUp()
hero.moveRight()
hero.moveUp(2)
enemy = hero.findNearestEnemy()
hero.attack(enemy)
hero.moveLeft(2)
hero.moveRight(2)
hero.moveDown()
hero.moveRight()
hero.moveUp()
hero.moveRight()
hero.moveUp(2)
enemy = hero.findNearestEnemy()
hero.attack(enemy)
hero.moveLeft(2)
hero.moveRight(2)
hero.moveDown()
hero.moveRight()
hero.moveUp()
hero.moveRight()

**this code completes with 45 coinsPreformatted text
**