l'IA fonctionne maintenant de manière instantanée

This commit is contained in:
2024-11-24 15:33:39 +01:00
parent 25550e887f
commit 6c7dbcc13a
3 changed files with 29 additions and 27 deletions

View File

@@ -9,10 +9,10 @@
void attendre(int secondes) {
time_t start_time = time(NULL);
while(difftime(time(NULL), start_time) >= secondes) {
break;
}
while(difftime(time(NULL), start_time) < secondes) {
break;
}
}
void jouerModeHumain(struct EtatJeu *etatJeu) {
while (1) {