Thanks for trying the game, I am glad you liked it. Sorry the code was hard to follow.
The code uses a room array setup where it lists what other rooms and in which direction you can go from each room. Likewise the items also reference what room they are in with player inventory being a fake room of sorts. There is another fake room for used up items too.
0そうだね プレイ済み