D
Dark Haukka
Well, I'm a spanish user, so I'm sorry if my English isn't good
enough.Here`s my problem:
I'm a total newbie in Ruby (just finished Hackety Hacks) and I want to
develop a program like this:
Let's have a dice. Written on the dice, there are six values: - - 0 0 +
+.
The "minus" value substracts one point, the "zero" doesn't do anything
at all, and the "plus" value adds one point.
I want to create a program that asks the user how many dices wants to
roll and roll them, showing the values (not math values, but printed
values instead) and the result of adding every value.
Optionally, I want the program to ask the user if he/she wants only the
positive rolls to count, if possible.
Can anybody help me, please? I don't have any idea...and I need this
program.
enough.Here`s my problem:
I'm a total newbie in Ruby (just finished Hackety Hacks) and I want to
develop a program like this:
Let's have a dice. Written on the dice, there are six values: - - 0 0 +
+.
The "minus" value substracts one point, the "zero" doesn't do anything
at all, and the "plus" value adds one point.
I want to create a program that asks the user how many dices wants to
roll and roll them, showing the values (not math values, but printed
values instead) and the result of adding every value.
Optionally, I want the program to ask the user if he/she wants only the
positive rolls to count, if possible.
Can anybody help me, please? I don't have any idea...and I need this
program.