From 61124c5f2a3f16e465746ba7ad96e5ea049c3430 Mon Sep 17 00:00:00 2001 From: Peter Minten Date: Sat, 13 Sep 2014 17:30:10 +0200 Subject: [PATCH 1/2] Add new dominoes exercise. --- dominoes.md | 7 +++++++ dominoes.yml | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 dominoes.md create mode 100644 dominoes.yml diff --git a/dominoes.md b/dominoes.md new file mode 100644 index 0000000000..846705ae02 --- /dev/null +++ b/dominoes.md @@ -0,0 +1,7 @@ +Compute an way to order a given set of dominoes in such a way that they form a +correct domino chain (the dots on one half of a stone match the dots on the +neighbouring half of an adjacent stone) and that dots on the halfs of the stones +which don't have a neighbour (the first and last stone) match eachother. + +For example given the stones `21`, `23` and `13` you should compute something +like `12 23 31` or `32 21 13` or `13 32 21`, etc. diff --git a/dominoes.yml b/dominoes.yml new file mode 100644 index 0000000000..89c8bda952 --- /dev/null +++ b/dominoes.yml @@ -0,0 +1,2 @@ +--- +blurb: "Make a chain of dominoes." From 2d475baa30d52ad337f1524a4a880644022de446 Mon Sep 17 00:00:00 2001 From: Peter Minten Date: Sat, 13 Sep 2014 17:30:22 +0200 Subject: [PATCH 2/2] Add new tournament exercise --- tournament.md | 11 +++++++++++ tournament.yml | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 tournament.md create mode 100644 tournament.yml diff --git a/tournament.md b/tournament.md new file mode 100644 index 0000000000..c5eb4d5555 --- /dev/null +++ b/tournament.md @@ -0,0 +1,11 @@ +Tally the results of a small football competition. Based on an input file +containing which team played against which and what the outcome was +create a file with a table like this: + +``` +Team | MP | W | D | L | P +Devastating Donkeys | 3 | 2 | 1 | 0 | 7 +Allegoric Alaskians | 3 | 2 | 0 | 1 | 6 +Blithering Badgers | 3 | 1 | 0 | 2 | 3 +Courageous Californians | 3 | 0 | 1 | 2 | 1 +``` diff --git a/tournament.yml b/tournament.yml new file mode 100644 index 0000000000..7ca3e1c713 --- /dev/null +++ b/tournament.yml @@ -0,0 +1,2 @@ +--- +blurb: "Tally the results of a small football competition."