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

warining de la variable win pas utilisée

parent a1c1710a
No related branches found
No related tags found
No related merge requests found
......@@ -18,27 +18,25 @@ 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);
switch (mode)
{
case 1:
case 1:
Launch_puissance4_randBot(0);
break;
case 2:
Launch_puissance4_smartBot(0);
break;
case 3:
Launch_puissance4();
break;
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;
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