From: Bernard Lambeau Date: 2011-01-24T00:39:44+09:00 Subject: Re: Help! Please, I'm lost! --0016363b804ca23c8e049a854a44 Content-Type: text/plain; charset=ISO-8859-1 Hello, just a hint for the interactive part: have a look at the highline gem (http://lmgtfy.com/?q=Ruby+HighLine) Have fun! On Sun, Jan 23, 2011 at 4:26 PM, Dark Haukka wrote: > 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. > > -- > Posted via http://www.ruby-forum.com/. > > -- PhD Student, Computer Science Department, EPL/INGI, UCLouvain, Belgium Mail: blambeau@gmail.com Mobile: +32 477 24 58 61 Blog: http://revision-zero.org/ Code: http://github.com/blambeau/ Follow: http://twitter.com/blambeau/ --0016363b804ca23c8e049a854a44--