Fix merge
This commit is contained in:
parent
159c83ea8d
commit
64baba6c61
26
pendu.c
26
pendu.c
@ -37,10 +37,6 @@ void display_hangman(int tries) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<<<<<<< HEAD
|
|
||||||
/*
|
/*
|
||||||
this function allow to save the last party
|
this function allow to save the last party
|
||||||
|
|
||||||
@ -72,25 +68,15 @@ void save_party(char * status, const char * good_word, char try[]) {
|
|||||||
fputs("\n",fichier);
|
fputs("\n",fichier);
|
||||||
|
|
||||||
fputs("tried letters: ", fichier);
|
fputs("tried letters: ", fichier);
|
||||||
for (int i = 0; i < sizeof(try); i++) {
|
for (int i = 0; i < sizeof(char*); i++) {
|
||||||
fputc(try[i],fichier);
|
fputc(try[i],fichier);
|
||||||
}
|
}
|
||||||
fputs("\n",fichier);
|
fputs("\n",fichier);
|
||||||
|
|
||||||
fclose(fichier); // On ferme le fichier qui a été ouvert
|
fclose(fichier); // On ferme le fichier qui a été ouvert
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
=======
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
void sig_handler(int signum){
|
|
||||||
printf("\ntime out\n");
|
|
||||||
exit (1);
|
|
||||||
>>>>>>> b4f25a5 (ajout du cooldown sur le scanf)
|
|
||||||
=======
|
|
||||||
=======
|
|
||||||
>>>>>>> dev-rocherl
|
|
||||||
>>>>>>> 083b1f2 (Commentaires)
|
|
||||||
/* this function display time out when user does nothing during 30s and verify signal*/
|
/* this function display time out when user does nothing during 30s and verify signal*/
|
||||||
void sig_handler(int signum){
|
void sig_handler(int signum){
|
||||||
if (signum == SIGALRM){
|
if (signum == SIGALRM){
|
||||||
@ -98,11 +84,8 @@ void sig_handler(int signum){
|
|||||||
printf("\ntime out\n");
|
printf("\ntime out\n");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
}
|
||||||
>>>>>>> 83066e1 (ajout des commentaires.)
|
|
||||||
=======
|
|
||||||
>>>>>>> dev-rocherl
|
|
||||||
=======
|
|
||||||
/*
|
/*
|
||||||
getWordByLength() function adds the possibility to the user to choose how many letters maximum the word to guess can contains.
|
getWordByLength() function adds the possibility to the user to choose how many letters maximum the word to guess can contains.
|
||||||
|
|
||||||
@ -137,7 +120,6 @@ const char* getWordByLength(){
|
|||||||
word = (const char*) strcat((char *) word, newWords[rand() % wordsFound]);
|
word = (const char*) strcat((char *) word, newWords[rand() % wordsFound]);
|
||||||
}*/
|
}*/
|
||||||
return word;
|
return word;
|
||||||
>>>>>>> dev-schied
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user