echange de pc
This commit is contained in:
16
jeu.c
16
jeu.c
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user