Skip to content

Instantly share code, notes, and snippets.

View daviddavis's full-sized avatar

David Davis daviddavis

View GitHub Profile
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end
# Solution to #{problem.title}
# by david
# http://lh:3000/problems/blackjack
def twenty_one?(*cards)
21 == cards.inject(:+)
end