Skip to content
Snippets Groups Projects
Commit 97351604 authored by remi.greub's avatar remi.greub
Browse files

ajout des 3 modes dans le main (testés et approuvés)

parent 6e212a84
Branches
No related tags found
No related merge requests found
......@@ -18,14 +18,28 @@ int main(int argc, char** argv){
}else{
width = atoi(argv[3]);
}
int win = 0;
printf("Board size is %dx%d (rows x col)\n",height,width);
init_puissance4(height, width);
//print_game();
//print_gameCells();
int win = Launch_puissance4();
//printf("\nle winner c'est ça la : %d\n",win);
//ici on va gérer probablement si on veut mettre a jour un score et relancer une nouvelle partie jusqu'à ce que l'utilisateur veut arrêter
switch (mode)
{
case 1:
win = Launch_puissance4_randBot(0);
break;
case 2:
win = Launch_puissance4_smartBot(0);
break;
case 3:
win = Launch_puissance4();
break;
default:
printf("t'as pas rentré un mode valide ! c'est 1, 2 ou 3\n");
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment