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

correction de l'affichage

parent 77f8cc5c
Branches
No related tags found
No related merge requests found
......@@ -193,12 +193,12 @@ int Launch_puissance4_randBot(int seed){
//print_grille();
//print_gameCells();
print_game();
printf("Column number? (starts at 1):\n");
//printf("au tour de %d de jouer\n", game.curr_player);
//printf("balance un chiffre entre 1 et %d\n", game.width);
if(game.curr_player == 1){
chiffre = rand()%game.width;
}else{
printf("Column number? (starts at 1):\n");
do{
scanf("%d",&chiffre);
chiffre-=1; //gestion des chiffres de 1 à n et non de 0 à n-1
......@@ -247,7 +247,7 @@ int Launch_puissance4_randBot(int seed){
//print_gameCells();
print_game();
//printf("le cercle a gagné cet enorme zgeg\n");
printf("Player two won!\n");
printf("Computer won!\n");
//fin du jeu
return CIRCLE;
}
......@@ -279,12 +279,12 @@ int Launch_puissance4_smartBot(int seed){
//print_grille();
//print_gameCells();
print_game();
printf("Column number? (starts at 1):\n");
//printf("au tour de %d de jouer\n", game.curr_player);
//printf("balance un chiffre entre 1 et %d\n", game.width);
if(game.curr_player == 1){
chiffre = SmartBot();
}else{
printf("Column number? (starts at 1):\n");
do{
scanf("%d",&chiffre);
chiffre-=1; //gestion des chiffres de 1 à n et non de 0 à n-1
......@@ -333,7 +333,7 @@ int Launch_puissance4_smartBot(int seed){
//print_gameCells();
print_game();
//printf("le cercle a gagné cet enorme zgeg\n");
printf("Player two won!\n");
printf("Computer won!\n");
//fin du jeu
return CIRCLE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment