Skip to content

Instantly share code, notes, and snippets.

@DomNomNom
Last active June 10, 2020 12:06
Show Gist options
  • Save DomNomNom/b9d704f6bc2ace5090a626cc3d9257d8 to your computer and use it in GitHub Desktop.
Save DomNomNom/b9d704f6bc2ace5090a626cc3d9257d8 to your computer and use it in GitHub Desktop.

You enter the dungeon on via the west entrance and spot nine magical Torches in an arrangement like so

..T.T.T
.......
@.T.T.T
.......
..T.T.T

The walls rumble! You hear "Ignite all torches or the ceiling will crumble!"

On each turn you may do one of the following:

  • Employ your telekinesis to move any torch T to one of its adjacent (North/South/East/West) free tiles .
  • Employ your legs to move yourself @ to an adjacent free tile.

At the end of each turn, you ignite all torches adjacent to you.

Can you ignite all torches before the ceiling collapses at the start of the 13th turn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment