From: Josh Cheek Date: 2011-01-13T20:20:23+09:00 Subject: Re: random orc game --001485f7d33cdff9750499b88047 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jan 12, 2011 at 4:02 PM, Steve Rees wrote: > I am learning, slowly, how to use ruby. > This is a small game I made, will be changing the random win/lose > decider to a question/answer system. > If anyone has time to give it a quick test as it is and tell me where > certain parts arent working and why, I would really appreciate it. > One of the main parts which doesnt work as i expect it to, no matter how > I have changed the order and the wording is the code near the bottom of > the script which counts player lives used when health reaches zero. It > appears to wait until orc health is zero to process the player's health, > even if player's health is a minus number. > Hi, Steve, I looked through it and put some thoughts in as comments, including why you are having the issue with the player lives only being counted after the orcs lose the fight. https://gist.github.com/777727 Anyway, welcome to Ruby, it's really great to see people who care enough to learn by trying out their own ideas :) --001485f7d33cdff9750499b88047--