From: Josh Cheek Date: 2011-01-14T14:59:56+09:00 Subject: Re: random orc game --0016e64f917020e7ee0499c80e4c Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jan 13, 2011 at 4:33 PM, Steve Rees wrote: > Thankyou for taking the time to go through, that so thoroughly - that > kind of feedback and pointers is really useful. > I'll go through the file again and make all those changes, they make a > lot of sense! > Steve > > -- > Posted via http://www.ruby-forum.com/. > > Another method you might write could be named "prompt", which just accepts a string, prints it to the terminal, and returns the user's response. Then, the many places you do things like: puts 'The Orc\'s health is now ' + orchealth.to_s gets could then become prompt 'The Orc\'s health is now ' + orchealth.to_s You could do that in a lot of places :) --0016e64f917020e7ee0499c80e4c--