echange de pc

This commit is contained in:
2024-11-18 16:15:25 +01:00
parent 16bb47eb28
commit 883aff1bec
6 changed files with 23 additions and 22 deletions

16
jeu.c
View File

@@ -4,13 +4,23 @@
#include "comportementJCJ.h"
#include "comportementJCIA.h"
void Jeu(){
int choix[2], taille = 0;
int Jeu(){
int choix[2], taille = 0, victoire = 0;
Menu(choix);
taille = choix[1];
if(choix[0] == 1){
compJCJ(taille);
victoire = compJCJ(taille);
if(victoire == 1){
return 1;
}else if(victoire == 2){
return 2;
}
}else if (choix[0] == 2){
compJCIA(taille);
if(victoire == 1){
return 1;
}else if(victoire == 3){
return 3;
}
}
}