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

correction de la même erreur mais pour le mode randbot

parent 5dc9fe02
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,9 @@ int Launch_puissance4_randBot(int seed){
while(winner==EMPTY){
print_game();
if(game.curr_player == 1){
chiffre = rand()%game.width;
do{
chiffre = rand()%game.width;
}while((is_cell_free(chiffre, 0, game.players[game.curr_player].symbol))<0);
}else{
printf("Column number? (starts at 1):\n");
do{
......
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