Implement the logic of the hangman game using functional reactive programming.
Hangman is a simple word guessing game.
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.
Historically, Elm was using functional reactive programming until it specialized to using the Elm Architecture.
Solve this exercise as if you were writing a web app using the Elm Architecture. The output of the program should be HTML with the following structure
<div>
<dl>
<dt>State</dt>
<dd>Ongoing</dd>
<dt>Word</dt>
<dd>______</dd>
<dt>Remaining failures</dt>
<dd>5</dd>
</dl>
</div>
where <dl> is the description list element, <dt> the description term element and <dd> the description details element, all standard HTML elements.
If there is an error, the output should have the following structure
<div>
<p>error message</p>
</div>
Sign up to Exercism to learn and master Elm with 28 concepts110 exercises, and real human mentoring, all for free.