summaryrefslogtreecommitdiff
path: root/go/secret-handshake/README.md
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-08-25 12:34:26 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-08-25 12:34:26 +0200
commitc460ce761cb29d8d04f302dc6fd62fd0c170bfab (patch)
treee9e2d4d01c8cf06d6e0bcb331179e6f2e90bb349 /go/secret-handshake/README.md
parentff662e72997f80c940ddb6f08b032a05f8f4f285 (diff)
Handshake
Diffstat (limited to 'go/secret-handshake/README.md')
-rw-r--r--go/secret-handshake/README.md49
1 files changed, 49 insertions, 0 deletions
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.
+