Follow the Code (Puzzling Legend in the UK version) is a puzzle in Professor Layton and the Unwound Future. The puzzle must be solved in order to progress the story.


US Version

One of the four corner squares below A, B, C, or D, will unlock this door when pressed.

Start from the red square in the center and follow the order code shown at the top--red, blue, yellow--to find it. Also, you can't use the same square twice.

Which square will unlock the door? Tap the correct letter to solve the puzzle.

UK Version

This note contains instructions for disarming the traps in the door!

"One of the four buttons, A, B, C or D, disarms the traps. To find out which one it is, trace a path from the centre square, going horizontally or vertically from square to square in the order red, blue, yellow until you reach the correct button. You cannot pass through the same square twice."

Touch the correct button, A to D.


Click a Tab to reveal the Hint.

US Version

Red, blue, yellow. Red, blue, yellow...

Starting from the red square in the center, going from square to square in the exact order will lead you to the answer.

UK Version

Red, blue, yellow.

Follow this order carefully and the location of the correct button will soon become apparent.

US Version

Red, blue, yellow. Be sure to follow this color order each time you move to a new square.

From the start, here are the first seven moves:

Right, up, left, left, up, left, up.

UK Version

Are you sure you've been sticking to the red, blue, yellow order?

From the start, go right, up, left, left, up, left, up.

After that, check where you can go from each square, one by one.

US Version

Follow the steps listed in Hint Two, and continue going red, blue, yellow toward the right.

If you don't make any mistakes along the way, you'll end up at the right square before too long.

UK Version

Follow the directions given in Hint 2, then continue around to the right, following the red, blue, yellow order.

Unless you make a mistake with the colour order along the way, you're sure to eventually find the correct button for disarming the traps.

US Version

The correct square is not the top-right or bottom-right corner. It's one of the two corner squares on the left!

UK Version

The button you're after isn't the one in the top-right or the bottom-right. The correct answer is one of the buttons on the left side!



US Version

Too bad!

Are you sure you're going from square to square in the right order? Check the order code at the top, and try again.

UK Version

Too bad.

Are you sure you followed the colour order correctly?


US Version

That's it!

The top-left button will unlock the door.

UK Version

Well done!

Button A on the top-left is the one that disarms the traps.

Now you can open the door!


A big thanks to

Community content is available under CC-BY-SA unless otherwise noted.