Class: Protocol::Dice
- Inherits:
-
Object
- Object
- Protocol::Dice
- Defined in:
- lib/appswarm/protocols/protocol_dice.rb
Instance Method Summary collapse
-
#initialize(parties, maximum) ⇒ Dice
constructor
A new instance of Dice.
Constructor Details
#initialize(parties, maximum) ⇒ Dice
Returns a new instance of Dice.
11 12 13 14 15 |
# File 'lib/appswarm/protocols/protocol_dice.rb', line 11 def initialize(parties,maximum) super(parties) @maximum=maximum myValue=(rand*maximum*5).to_i end |