Added HangmanGame class, but does not work yet

Dependencies:   SDFileSystem app epson mbed msp430 pl tests

Revision:
0:fa7450a43b99
Child:
1:a5ec6f9dcf0d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hangman.cpp	Mon Dec 04 09:32:20 2017 +0000
@@ -0,0 +1,35 @@
+
+
+#include "log.h"
+
+namespace Flexbook
+{
+
+Flexbook::HangmanGame()
+: word, guessed,
+  alphabet,
+  wordlength, currentpos, oldpos, hangstage
+{
+    Log("Creating hangman game");
+    // Display the game welcome screen
+    for (int i=0; i<27; i++)
+    {
+        alphabet[i]=false;
+        }
+    currentpos=13;
+    oldpos=13;
+    hangstage=0;
+    wordlength = ReturnWord(*word);
+    for (int i=0; i<wordlength; i++)
+    {
+        guessed[i]=13;
+        }
+    // Display the game start screen
+}
+
+Flexbook::RedrawAlphabet(char newpos, char oldpos)
+{
+        // redraw the alphabet matrix based on a cursor move
+}
+
+}
\ No newline at end of file