Beginner Help -- Txt game

Last time I posted here I was delightfully surprised at the
assistance I got. I made a text game on my TI-83+ in high school and
figured it would be a good learning experience to recreate that in ruby.
I figured I could expand quite a bit from a calculator. I own both
"Programming Ruby: From Beginner to Professional" and the Pickaxe. I've
reached a point where things are just way to messy and decided I was
going to redo the whole thing. Problem is I cant really find a better
way to do it. I am hoping to get some suggestions on general technique
as well. I really need to find some sort of guide about commenting to,
as you can tell.

Thanks,

Jon

Attachments:
http://www.ruby-forum.com/attachment/3134/Gladiator.rb

···

--
Posted via http://www.ruby-forum.com/.

Jonathon Hartoon wrote:

    Last time I posted here I was delightfully surprised at the
assistance I got. I made a text game on my TI-83+ in high school and
figured it would be a good learning experience to recreate that in ruby.
I figured I could expand quite a bit from a calculator. I own both
"Programming Ruby: From Beginner to Professional" and the Pickaxe. I've
reached a point where things are just way to messy and decided I was
going to redo the whole thing. Problem is I cant really find a better
way to do it. I am hoping to get some suggestions on general technique
as well. I really need to find some sort of guide about commenting to,
as you can tell.

Thanks,

Jon

Attachments:
http://www.ruby-forum.com/attachment/3134/Gladiator.rb

It doesn't look too bad from my point of view (but I've only been coding in Ruby for a few months). Only problem with it, well, is the one you're having - it only works exactly the way it's coded. I can't figure out why you have methods for every menu option instead of just having one method "menu" and a case statement in it. I do like your 'input' method though :slight_smile:
Make configuration files with the various scenes and monsters and load from there instead - make it YAML if you want, load it all up and then pick a random monster.. ?
HTH,

--Aldric