Added comments
This commit is contained in:
parent
2fd6561591
commit
509db16917
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 : ");
|
||||||
|
Loading…
Reference in New Issue
Block a user