RE: Working on Dungeons and Dragons in Digital Form
I would add the key as part of the procedure. If lockedDoor exists, add keyToLockedDoor where keyLocation is never beyond lockedDoor.
RE: Working on Dungeons and Dragons in Digital Form