This should be easy, as it's just an example game, but here is the solution anyway. You can also ask for HELP in every room, and it does tell you what to do pretty much.
Get Lamp, Light Lamp, E, S, Get Rat, N, E (snake eats the rat), E, Get Key, W, W, S, Unlock Door, Get Bar, W, N, W. |