I'm having a difficult understanding what this guy is trying to gain on Ruby Quiz: http://rubyquiz.com/quiz61.html
There is a much simpler way to do dice in Ruby.
eDice = ['1', '2', '3', '4, '5', '6']
Or if you want to do it on the same line:
eDice = ['1 ', '2 ', '3 ', '4 ', '5 ', '6 ']
I don't need something so absurdly complicated for sake of being complicated, such as: dice.gsub(/d(%|00)(\D|$)/, 'd100\2') I don't get the purpose of using symbols for something that can be reasonably presented in English.
Rubygame::EventGame or whatever is bad enough.
This is why tutorials drive me nuts. It's like they like finding the most complicated solutions for simple problems.
Meanwhile I figured my own solution for the Random Dungeons not loading problem. But can't seem to find any for producing turns. The way I keep track of time is using steps. The graphic is changed using a graphic update function the input function loops three if certain variables are switched to false. The things like the @ character is drawn to the actual file being read.
Say you want to do a DnD style dice roll.
eDice = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '20']
print "You roll a D20 to overcome enemy defenses: "
print "Enemy rolls to try to counter attack: "
I don't get it when people decide to use symbols, it doesn't make it simpler. At least not for me. If anything it obfuscates a tutorial that should be about learning how to make a roguelike, not scratching your head on what something does.
My G.E.D. math teacher would have been wagging her finger at this guy, cause he's making it more complicated than it needs to be.
I get math, at least up to Algebra (though quite rusty on algebra). But symbols? Not what I'm here for.