diff --git a/pendu.c b/pendu.c index cfa5f3b..7ede675 100644 --- a/pendu.c +++ b/pendu.c @@ -35,7 +35,12 @@ void display_hangman(int tries) { } } -/*getWordByLength() function*/ +/* +getWordByLength() function adds the possibility to the user to choose how many letters maximum the word to guess can contains. + +Returns: + A random word from the words list that correspond to the user input +*/ const char* getWordByLength(){ int maxLetters; printf("Difficulté - Entrez le nombre de lettres maximum à deviner : ");