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

correction bug dans launch puissance4 (width height)

parent fd39e9d0
Branches
No related tags found
No related merge requests found
......@@ -108,13 +108,13 @@ int Launch_puissance4(){
//print_grille();
print_gameCells();
printf("au tour de %d de jouer\n", game.curr_player);
printf("balance un chiffre entre 0 et %d\n", game.width-1);
printf("balance un chiffre entre 0 et %d\n", game.height-1);
do{
scanf("%d",&chiffre);
if(chiffre >= game.width || chiffre < 0){
if(chiffre >= game.height || chiffre < 0){
printf("HEP HEPHEP !! donne un chiffre dans la plage donnee manche a couille\n");
}
}while((chiffre >= game.width) || (chiffre < 0) || is_cell_free(chiffre, 0, game.players[game.curr_player].symbol)<0);
}while((chiffre >= game.height) || (chiffre < 0) || is_cell_free(chiffre, 0, game.players[game.curr_player].symbol)<0);
game.gamePlayed -= 1; //peut être le mettre plus bas non ?
int i = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment