After successfully finding the treasure in The treasure hunt of Mr. Jones, it turned out that the treasure was not so magnificent after all and barely covered the cost of the guides.
Mr. Jones had no choice but to go on his next treasure hunt.
Here we are now in front of a new maze of rooms hiding a new treasure to be found!
According to some information collected beforehand, it would seems that the rooms are connected as such :
1 -> 2,4
2 -> 1,3,5
3 -> 2,6
4 -> 1,5,7
5 -> 2,4,6,8
6 -> 3,5,9
7 -> 4,8
8 -> 5,7,9,10
9 -> 6,8
10 -> 8
And the treasure should be in room number 10.
In the entrance, in front of the maze, a big stone table with a red button in the middle can be seen. After further investigation, the following scribbles from previous treasure hunters were found carved on the table :
X
E F
B C D
9 A
6 7 8
4 5
1 2 31 = 2!&3
2 = 1|3
3 = 1!&2
4 = 1
5 = 3
6 = 1X!|3
7 = 2&9&A
8 = 6X|B
9 = BX|D
A = 9X|B
B = !D
C = B&D
D = 4!|5
E = 3X!|B
F = 6X!|8
X = E!|F
Behind the table, the doors leading to room 1,2 and 3 could be accessed.
Mr. Jones then proceeded to open the door to the room 2, but it was locked.
Perplexed, he then tried to open the door to the room 3 and it was unlocked!
He then entered the room number 3 and proceeded to open the door in front of him, but it was locked.
Frustrated, Mr Jones went back outside and tried to open the door to room 2 again. "HaHa!" he exclaimed as the door opened. After entering room 2, he tried to open the door in front of him but it was locked.
The now fulminating Mr Jones went back outside and smashed the red button on the table. To his surprise, all the doors were automatically closed.
Can you help Mr. Jones find the treasure?
HINT
After regaining his calm, Mr. Jones decided to try one more time. He went into the room 1 without problem, but the door in front of him was locked, he went back out and into the room 2 again without problem. He went back out and tried to go into room 3 but the door would not open. Back into room 2, he was able to open the doors to his left but then could not progress any further. Back to the reset button!