Ideas for program


#1

I’ve just recently learned how to work with the ruby language and so
i’ve been trying to make a little dice rolling program. I was wanting
to make it to where you could roll several different dice like d20, 10,
6,ect. I was just wondering how you would go about doing it.


#2

Jesse Mc wrote:

I’ve just recently learned how to work with the ruby language and so
i’ve been trying to make a little dice rolling program. I was wanting
to make it to where you could roll several different dice like d20, 10,
6,ect. I was just wondering how you would go about doing it.


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

games’re popular at ruby quiz

http://www.rubyquiz.com/quiz19.html


#3

“Gene T.” removed_email_address@domain.invalid writes:

http://www.rubyquiz.com/quiz19.html

Did you mean?:

http://www.rubyquiz.com/quiz61.html


#4

On 3/9/06, Jesse Mc removed_email_address@domain.invalid wrote:

I’ve just recently learned how to work with the ruby language and so
i’ve been trying to make a little dice rolling program. I was wanting
to make it to where you could roll several different dice like d20, 10,
6,ect. I was just wondering how you would go about doing it.

in Gambit, we added a method to Integer
so you could do stuff like

3.d(2)

http://gambit.rubyforge.org/classes/Integer.html

Also, see the rest of the dice interface for ideas.

http://gambit.rubyforge.org/classes/Gambit/Tools/Dice.html