From: "Sebastjan H." Date: 2012-07-10T19:58:43+09:00 Subject: Re: learning by doing part 2 - tc game "Jesús Gabriel y Galán" wrote in post #1068106: > On Tue, Jul 10, 2012 at 12:39 PM, Sebastjan H. > wrote: >> have these available in either arrays of hashes and then decide each >> turn which one to use. > > You can do that easily: > > beasts = %w{derimor barador}.map {|name| Blue_Scale_DRAGON.new name} > puts "Choose beast to summon:" > beasts.each_with_index {|b,i| puts "#{i+1}.- #{b.dragon_name}"} > beast = beasts[(gets.to_i) - 1] > > > Jesus. thank you both, I'll try these suggestions and post back if I run into problems. Always a pleasure learning from masters:) regards, seba -- Posted via http://www.ruby-forum.com/.