Added HangmanGame class, but does not work yet
Dependencies: SDFileSystem app epson mbed msp430 pl tests
hangman.cpp
- Committer:
- group-FlexBook
- Date:
- 2017-12-04
- Revision:
- 0:fa7450a43b99
- Child:
- 1:a5ec6f9dcf0d
File content as of revision 0:fa7450a43b99:
#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 } }