From 4436eb9e511b68410e6f941de775ed28d2250d45 Mon Sep 17 00:00:00 2001 From: Peter Minten Date: Sun, 23 Mar 2014 14:16:21 +0100 Subject: [PATCH] Add hangman exercise (Functional Reactive Programming) --- hangman.md | 13 +++++++++++++ hangman.yml | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 hangman.md create mode 100644 hangman.yml diff --git a/hangman.md b/hangman.md new file mode 100644 index 0000000000..d25adea6e3 --- /dev/null +++ b/hangman.md @@ -0,0 +1,13 @@ +[Hangman](https://en.wikipedia.org/wiki/Hangman_%28game%29) is a simple word +guessing game. + +[Functional Reactive +Programming](https://en.wikipedia.org/wiki/Functional_reactive_programming) is a +way to write interactive programs. It differs from the usual perspective in that +instead of saying "when the button is pressed increment the counter" you write +"the value of the counter is the sum of the number of times the button is +pressed". + +Implement the basic logic behind hangman using functional reactive programming. +You'll need to install an FRP library for this, this will be described in the +language/track specific files of the exercise. diff --git a/hangman.yml b/hangman.yml new file mode 100644 index 0000000000..dfca84b837 --- /dev/null +++ b/hangman.yml @@ -0,0 +1,2 @@ +--- +blurb: "Implement the logic of the hangman game using functional reactive programming."