Module: Yahtzee::Game
Constant Summary
Constants included from Dice
Dice::DIE_FACES, Dice::MAX_DIE_COUNT
Class Method Summary collapse
- .first_roll ⇒ Object
- .second_roll(keepers) ⇒ Object
-
.third_roll(keepers) ⇒ Object
tricky - todo: alias_method :third_roll, :second_roll.
Methods included from Dice
Methods included from Scoring
reduce_values_from_hash, score, score_game_total, score_subtotal, score_upper_total
Methods included from Scoring::UpperCard
score_aces, score_fives, score_fours, score_sixes, score_sums, score_threes, score_twos
Methods included from Scoring::LowerCard
dup_counts_as_hash, max_dupe_count_as_hash, score_bonus_yahtzee, score_chance, score_four_of_a_kind, score_full_house, score_large_straight, score_min_of_a_kind, score_small_straight, score_three_of_a_kind, score_yahtzee
Class Method Details
.first_roll ⇒ Object
19 20 21 |
# File 'lib/game.rb', line 19 def first_roll Dice.roll(5) end |
.second_roll(keepers) ⇒ Object
23 24 25 |
# File 'lib/game.rb', line 23 def second_roll(keepers) Dice.reroll(keepers) end |
.third_roll(keepers) ⇒ Object
tricky - todo: alias_method :third_roll, :second_roll
28 29 30 |
# File 'lib/game.rb', line 28 def third_roll(keepers) Dice.reroll(keepers) end |