Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.1 KB

12DaysOfChrismtas.md

File metadata and controls

43 lines (36 loc) · 1.1 KB

On the twelfth day of Christmas...

This kata involves simply printing out the lyrics to the '12 Days of Christmas'.

The rules

You should print out each complete verse of the song There should be a blank line between each verse You must ordinalize your numbers: "first day of Christmas", "four calling birds", etc.

Other things to consider / challenge yourself with Object Calisthenics: https://www.cs.helsinki.fi/u/luontola/tdd-2009/ext/ObjectCalisthenics.pdf Test Driven Development

Example Output

On the First day of christmas, My true love gave to me, a partridge in a pear tree

On the Second day of christmas, My true love gave to me, Two turtle doves, And a partridge in a pear tree

On the Third day of christmas, My true love gave to me, Three french hens, Two turtle doves, And a partridge in a pear tree

etc.

Here is the full list

Twelve drummers drumming, Eleven pipers piping, Ten lords-a-leaping, Nine ladies dancing, Eight maids-a-milking, Seven swans-a-swimming, Six geese-a-laying, Five golden rings, Four calling birds, Three french hens, Two turtle doves, And a partridge in a pear tree.