![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Added HangmanGame class, but does not work yet
Dependencies: SDFileSystem app epson mbed msp430 pl tests
Diff: hangman.cpp
- Revision:
- 1:a5ec6f9dcf0d
- Parent:
- 0:fa7450a43b99
--- a/hangman.cpp Mon Dec 04 09:32:20 2017 +0000 +++ b/hangman.cpp Mon Dec 04 20:15:18 2017 +0000 @@ -2,13 +2,15 @@ #include "log.h" +#include "hangman.h" + namespace Flexbook { -Flexbook::HangmanGame() -: word, guessed, - alphabet, - wordlength, currentpos, oldpos, hangstage +HangmanGame::HangmanGame() +: finished(false), word(""), guessed(""), + wordlength(0), currentpos(), oldpos(), + alphabet(), hangstage() { Log("Creating hangman game"); // Display the game welcome screen @@ -27,7 +29,7 @@ // Display the game start screen } -Flexbook::RedrawAlphabet(char newpos, char oldpos) +void HangmanGame::RedrawAlphabet(char newpos, char oldpos) { // redraw the alphabet matrix based on a cursor move }