Padlocked Fence (Padlock Gate in the UK version) is a puzzle in Professor Layton and the Miracle Mask.


The gate is secured by a sturdy padlock with an unusual code. To open the lock, Layton and Randall need to rearrange the nine panels so that every vertical, horizontal, and diagonal set of three numbers adds up to the same sum.

It might look impossible, but there are more numbers on the back of the panels. Move and flip the panels to enter the code, and help our heroes unlock the padlock!


Click a Tab to reveal the Hint.

First, start by flipping all the panels to see which numbers there are.

Surprisingly, there are only a few different numbers you can use.

There are only three different numbers: 1, 2, and 3.

What do these numbers add up to?

Adding 1, 2, and 3 gives you 6.

With a bit of trial and error, you should be able to arrange the panels so that the lines add up to 6 vertically, horizontally, and diagonally.

Here are the diagonal combinations.

One is 2, 2, 2.

The other is 3, 2, 1 from top to bottom.

The remaining four panels are up to you to work out.



Too bad.

There are more numbers on the backs of the panels. Which numbers do you have to choose from?



There are actually a few valid solutions, but here's one example:

2 1 3
3 2 1
1 3 2

Every line of three digits adds up to six. As each panel has only two possible digits, you don't have many three-digit totals to consider.

A big thanks to

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