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

correction erreur sanitizer lorsque je lance avec mode > 3

parent 9229a021
No related branches found
No related tags found
No related merge requests found
......@@ -21,16 +21,18 @@ int main(int argc, char** argv){
printf("Board size is %dx%d (rows x col)\n",height,width);
struct game game;
init_puissance4(&game, height, width);
switch (mode)
{
case 1:
init_puissance4(&game, height, width);
Launch_puissance4_randBot(&game, 0);
break;
case 2:
init_puissance4(&game, height, width);
Launch_puissance4_smartBot(&game, 0);
break;
case 3:
init_puissance4(&game, height, width);
Launch_puissance4(&game);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment