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.
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
On 3/9/06, Jesse Mc [email protected] 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.