Skip to content

Instantly share code, notes, and snippets.

@sprengerjo
Created June 24, 2013 20:16
Show Gist options
  • Save sprengerjo/5853233 to your computer and use it in GitHub Desktop.
Save sprengerjo/5853233 to your computer and use it in GitHub Desktop.
first test and first implementation
@Test
defvoid gutterGamesOnly() {
(1..20).forEach[game.roll(0)]
assertEquals(20 * 0, game.score())
}
// the implementation so far...
class Game {
def roll(int score) {
}
def score() {
0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment