Ed in Tampa flarum-bbcode.forum.quote.wroteEven simpler
Make each drawer have an open close latch. Perhaps a strict of wood with keyholes. Min the open position the big opening would be on the bar in locked position the narrow part would hold the bar from moving.
Then set up the combination
llllllllollllllllllolllllllolllloolllool.
I means open drawer locks slide holding the 27 th drawer closed. O means the slide is released.
Basic amounts to mounting key hole strip to drawer where for l drawers the slot in on the big hole Iif the drawer is pulled out it locks the slide. On the 7 magic drawers the keyhole strip would be turned so
that the closed drawer puts the narrow locking the slide. Pulling the drawer out moves the strip to the large hole releasing the slid.
Spring load the rod to relapse the 27 th drawer when the others are in right position.
The 'binary' stuff is the simple part.
The trick is to translate that into wooden parts.
Consider a vertical rail.
Notches on both the front and rear edges corresponding each of the 26 drawer locations(the 27th will be a different scene).
The notches on the rear are entered when a 'non 7' drawer is
opened.
The notches on the front are vacated when each '7 drawer' is opened.
Thus the front notches perform the +and function of the '7 drawer', and the
rear notches perform the -or function of the other 19('non 7 drawer').
Any 'non 7' drawer open prevents the rail from moving vertically
Any missing '7 drawer' open also prevents the vertical bar from vertical movement.
A spring can move the rail vertically when all the notches are 'unoccupied'.
That vertical motion unlocks the 27th drawer.
The '7 drawer' have a pin that vacates the corresponding notch in the front rail.
The 'non 7 drawers' move a lever out of the corresponding rear notch when closed.
Missing is the details of how closing a '7 drawer' moves the rail back to the lock position as well as closing the 27th drawer. Some 'inclined' planes needed there.
notches, levers and pins lock and a slot unlocks.