Help needed in Ruby :/ (3, permasaged)

1 Name: #!/usr/bin/anonymous : 2008-05-21 23:19 ID:v5X8ZYuj

Hey /code/
I'm a total newbie when it comes to programming. I come here to seek some help in Ruby and maybe learn something.
I found a great dicebot for IRC, http://d20.jonnydigital.com/roleplaying-tools/dicebot
It's open source and does everything other than calculate dice rolls the way I need. What it needs to do is calculate the total based around three different methods listed below, whichever is highest - not through calculating the plain sum;

  1. The single highest digit [3,5,7,10 = 10]
  2. The sum of multiples [7,7,7,6,8 = 21] - 2 or more [can be seperate multiples; 6,6,6,7,7].
  3. Straights [5,6,7,3,3 = 18] 2 or more.

Online example [slightly differs from the above]: http://www.voidstate.com/rpg/cthulhutech/roller.php

The dice functions are contained within dicebox.rb file. If anyone has an idea on how the above needs to be implemented or where I can find some tutorials on the subject, it would be appreciated.

2 Name: #!/usr/bin/anonymous : 2008-05-22 03:20 ID:LdVkR67e

You don't need a specific "tutorial" for that (nevermind the fact that nowadays "tutorial" means "shitty article written by a kid who just learned the stuff he's gonna teach you about").
You just need to learn the basic constructs of your language, and it should be easy to make this modification.

I recommend you try this: http://pine.fm/LearnToProgram/

Many things in this list are also good choices: http://www.ruby-lang.org/en/documentation/

3 Name: OP : 2008-05-22 03:57 ID:v5X8ZYuj

I'll check em' out, thanks for the input.

This thread has been closed. You cannot post in this thread any longer.