\n"
+// << "Attempts left: " << maxWrongGuesses - wrongGuesses << "
\n"
+ << "
\n"
+ << "" << std::endl;
+}
+
+void printGameState(int maxWrongGuesses, int wrongGuesses){
+ std::cout << color(gray) << "\nAttempts left: " << (maxWrongGuesses - wrongGuesses) << color(reset) << "\n";
+}
+
+void printWorkingCopy(string workingCopy){
+ std::cout << color(blue) << "[ " ;
+ for (unsigned int i = 0; i < workingCopy.length(); ++i) {
+ std::cout << workingCopy.at(i) << " ";
+ }
+ std::cout << "]\n" << color(reset);
+}
+
+void printYouLost(string word){
+ std::cout << "The word was: " << color(white) << word << color(red) << "\nYou lost!\n" << color(reset);
+}
+
+void printYouWon(string word){
+ std::cout << "\n";
+ printWorkingCopy(word);
+ std::cout << color(green) << "You won!\n" << color(reset);
+}
\ No newline at end of file
diff --git a/Projekt_2/hangman.h b/Projekt_2/hangman.h
new file mode 100644
index 0000000..a1d26cc
--- /dev/null
+++ b/Projekt_2/hangman.h
@@ -0,0 +1,97 @@
+#ifndef HANGMAN_H
+#define HANGMAN_H
+
+#include