Class: Craps::D6

Inherits:
Dice
  • Object
show all
Defined in:
lib/craps/dice.rb

Overview

A standard D6 dice for easier access

Instance Attribute Summary

Attributes inherited from Dice

#last_result, #sides

Instance Method Summary collapse

Methods inherited from Dice

#base_prob, dices_thrown, #higher_or_equal_to, #lower_or_equal_to, #roll, #valid_integer

Constructor Details

#initializeD6

Returns a new instance of D6.



69
70
71
# File 'lib/craps/dice.rb', line 69

def initialize
  @sides = 6
end