void Start() { string fileName = "E:\\Users\\tomas\\Documents\\GitHub\\Programming-2\\Week 4\\Opdracht 2\\words.txt"; HangMan hangMan = new HangMan(); List <String> wordsList = hangMan.WordsList(); string word = SelectWord(wordsList); hangMan.Init(word); PlayHangMan(hangMan); Console.WriteLine("Het geheime woord is: " + hangMan.secretWord); Console.WriteLine("Het geraden woord is: " + hangMan.quessedWord); Console.ReadKey(); }
bool PlayHangMan(HangMan hangMan) { List <char> inputChars; if (hangMan.secretWord == hangMan.quessedWord) { return(true); } else { return(false); } return(true); }