Skip to content

Instantly share code, notes, and snippets.

View sebreh's full-sized avatar

Sebastian Rehnby sebreh

  • Copenhagen, Denmark
View GitHub Profile
@sebreh
sebreh / bowling_scores.rb
Last active August 9, 2017 07:43 — forked from RSpace/bowling_scores.rb
Bowling Kata tests
[
[0, [0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0]],
[20, [1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1]],
[6, [1,1, 1,1, 1,1]], # incomplete
[18, [1,1, 6,4, 3]], # incomplete w/ spare
[150, [5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5]],
[47, [1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 10, 10 ,9]],
[173, [7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 10]],
[300, [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]],
[280, [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 5]], # incomplete