forked from menault/TD3_DEV51_Qualite_Algo
Added comments
This commit is contained in:
7
pendu.c
7
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(){
|
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 : ");
|
||||||
|
Reference in New Issue
Block a user