![](/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.h
- Revision:
- 1:a5ec6f9dcf0d
- Parent:
- 0:fa7450a43b99
diff -r fa7450a43b99 -r a5ec6f9dcf0d hangman.h --- a/hangman.h Mon Dec 04 09:32:20 2017 +0000 +++ b/hangman.h Mon Dec 04 20:15:18 2017 +0000 @@ -24,20 +24,22 @@ ~HangmanGame(); // Game status indicator - boolean finished = false; + bool finished; private: // Word to be guessed, word guessed so far - char[14] word, guessed; + char word[14]; + char guessed[14]; // Number of letters in word to be guessed char wordlength; // Currently selected and previous position on the alphabet matrix - char currentpos, oldpos; + char currentpos; + char oldpos; // Status indicator for each letter on the alphabet matrix, already used or not? - boolean[27] alphabet; + bool alphabet[27]; // Number of wrong guesses, equals number of elements of hanging man drawn char hangstage; @@ -49,7 +51,7 @@ void select(); // Routine to redraw the alphabet matrix after a cursor move - void redrawalphabet(char newpos, char oldpos); + void RedrawAlphabet(char newpos, char oldpos); };