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

gestion entrées de chiffres de 1 à n et non 0 à n-1

parent 23268279
No related branches found
No related tags found
No related merge requests found
......@@ -109,9 +109,10 @@ int Launch_puissance4(){
//print_gameCells();
print_game();
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 1 et %d\n", game.width);
do{
scanf("%d",&chiffre);
chiffre-=1; //gestion des chiffres de 1 à n et non de 0 à n-1
if(chiffre >= game.width || chiffre < 0){
printf("HEP HEPHEP !! donne un chiffre dans la plage donnee manche a couille\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment