Added comments

This commit is contained in:
Killian SCHIED 2024-10-15 11:59:29 +02:00
parent 2fd6561591
commit 509db16917

View File

@ -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(){ const char* getWordByLength(){
int maxLetters; int maxLetters;
printf("Difficulté - Entrez le nombre de lettres maximum à deviner : "); printf("Difficulté - Entrez le nombre de lettres maximum à deviner : ");