From 509db169170753c2bc2382a89ab3afe4f1e3f79c Mon Sep 17 00:00:00 2001 From: schied Date: Tue, 15 Oct 2024 11:59:29 +0200 Subject: [PATCH] Added comments --- pendu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 : ");