|
|
@ -89,6 +89,7 @@ void randomizeSymbols(char symbols[]){ |
|
|
|
int spin(char symbols[], int bet, int balance){ |
|
|
|
|
|
|
|
int winnings = getWinnings(symbols, bet); |
|
|
|
showResult(symbols); |
|
|
|
|
|
|
|
return balance; |
|
|
|
} |
|
|
@ -119,6 +120,13 @@ int getWinnings(char symbols[], int bet){ |
|
|
|
return winnings; |
|
|
|
} |
|
|
|
|
|
|
|
void showResult(char symbols[]){ |
|
|
|
|
|
|
|
for (int i = 0; i < ROWS; i++){ |
|
|
|
printf(" %c | %c | %c\n", symbols[i * ROWS], symbols[i * ROWS + 1], symbols[i * ROWS + 2]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void welcomeMessage(){ |
|
|
|
printf("Herzlich Willkommen zur \n\n" |
|
|
|
" _ _ _ _ \n" |
|
|
|