|
@ -16,7 +16,7 @@ void slotMachine(){ |
|
|
int bet = getBet(balance); |
|
|
int bet = getBet(balance); |
|
|
balance = subtractBetFromBalance(bet, balance); |
|
|
balance = subtractBetFromBalance(bet, balance); |
|
|
|
|
|
|
|
|
createSymbols(symbols); |
|
|
|
|
|
|
|
|
randomizeSymbols(symbols); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -53,7 +53,7 @@ int subtractBetFromBalance(int bet, int balance){ |
|
|
return balance - bet; |
|
|
return balance - bet; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void createSymbols(Symbol symbols[]){ |
|
|
|
|
|
|
|
|
void randomizeSymbols(Symbol symbols[]){ |
|
|
|
|
|
|
|
|
char possibleLetter[] = "ABCD"; |
|
|
char possibleLetter[] = "ABCD"; |
|
|
int possibleValue[] = { 3,5,10,20 }; |
|
|
int possibleValue[] = { 3,5,10,20 }; |
|
|