I\'m playing with writing a MUD/text adventure (please don\'t laugh) in Ruby. Can anyone give me any pointers towards an elegant, oop-based solution to parsing input text? <
Split it into tokens as the format will always be: [command] [object1] ([refering] [object2])
You could call method [command] on the [object1] in your room and pass it the [object2] if applicable.