From c460ce761cb29d8d04f302dc6fd62fd0c170bfab Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 25 Aug 2016 12:34:26 +0200 Subject: Handshake --- go/secret-handshake/README.md | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 go/secret-handshake/README.md (limited to 'go/secret-handshake/README.md') diff --git a/go/secret-handshake/README.md b/go/secret-handshake/README.md new file mode 100644 index 0000000..8548bbc --- /dev/null +++ b/go/secret-handshake/README.md @@ -0,0 +1,49 @@ +# Secret Handshake + +Write a program that will take a decimal number, and convert it to the appropriate sequence of events for a secret handshake. + +> There are 10 types of people in the world: Those who understand +> binary, and those who don't. + +You and your fellow cohort of those in the "know" when it comes to +binary decide to come up with a secret "handshake". + +``` +1 = wink +10 = double blink +100 = close your eyes +1000 = jump + + +10000 = Reverse the order of the operations in the secret handshake. +``` + +Here's a couple of examples: + +Given the input 9, the function would return the array +["wink", "jump"] + +Given the input "11001", the function would return the array +["jump", "wink"] + + +The program should consider strings specifying an invalid binary as the +value 0. + +To run the tests simply run the command `go test` in the exercise directory. + +If the test suite contains benchmarks, you can run these with the `-bench` +flag: + + go test -bench . + +For more detailed info about the Go track see the [help +page](http://exercism.io/languages/go). + +## Source + +Bert, in Mary Poppins [http://www.imdb.com/character/ch0011238/quotes](http://www.imdb.com/character/ch0011238/quotes) + +## Submitting Incomplete Problems +It's possible to submit an incomplete solution so you can see how others have completed the exercise. + -- cgit v1.2.3