Update cube.c

This commit is contained in:
Andrei Ursu
2022-08-31 20:21:54 +02:00
parent df1ca32f49
commit fd0c4200a8

View File

@@ -47,9 +47,16 @@ void game(int money){
player.x = 1;
player.y = 1;
player.z = 1;
printf("You have $%d in your account.\n",account);
printf("How much do you want to wager? ");
scanf("%d",&wager);
while(wager > account){
system(CLEAR);
printf("You do not have that much money in your account.\n");
printf("How much do you want to wager? ");
scanf("%d",&wager);
}
srand(time(NULL));
for(int i=0;i<5;i++){
mines[i].x = rand()%3+1;