Beginner Help -- Txt game

  • Thread starter Jonathon Hartoon
  • Start date
J

Jonathon Hartoon

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
 
A

Aldric Giacomoni

Jonathon said:
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 :)
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top