|
|
@ -10,8 +10,7 @@ void slotMachine(){ |
|
|
|
while(balance > 0){ |
|
|
|
|
|
|
|
int bet = getBet(balance); |
|
|
|
balance -= bet; |
|
|
|
printf("%d\n", balance); |
|
|
|
balance = subtractBetFromBalance(bet, balance); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -47,6 +46,10 @@ int getBet(int balance){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
int subtractBetFromBalance(int bet, int balance){ |
|
|
|
return balance - bet; |
|
|
|
} |
|
|
|
|
|
|
|
void welcomeMessage(){ |
|
|
|
printf("Herzlich Willkommen zur \n\n" |
|
|
|
" _ _ _ _ \n" |
|
|
|