Skip to content

Instantly share code, notes, and snippets.


Ron Hopper ronhopper

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ronhopper on github.
  • I am ronhopper ( on keybase.
  • I have a public key whose fingerprint is 0A64 648A F4D8 72A1 DBB3 10A8 592E D345 21F0 F9AE

To claim this, I am signing this object:

ronhopper / bowling_scorer.rb
Created Mar 26, 2009
A simple bowling scorer that came to me in a dream.
View bowling_scorer.rb
class BowlingScorer
def initialize(rolls)
@rolls = rolls
def score
total = 0
rolls_left = @rolls.dup
10.times { total += score_frame(rolls_left) }