Browse Source
Symbole (A,B,C,D) mit bestimmten Wahrscheinlichkeiten und Werten erstellen
remotes/origin/dev
Symbole (A,B,C,D) mit bestimmten Wahrscheinlichkeiten und Werten erstellen
remotes/origin/dev
fdai7472
11 months ago
2 changed files with 49 additions and 3 deletions
@ -1,11 +1,19 @@ |
|||
#ifndef SLOT_MACHINE_H |
|||
#define SLOT_MACHINE_H |
|||
|
|||
typedef struct { |
|||
char letter; |
|||
int value; |
|||
} Symbol; |
|||
|
|||
#define NUM_OF_SYMBOLS 9 |
|||
|
|||
void slotMachine(); |
|||
void welcomeMessage(); |
|||
int getBalance(); |
|||
int userInput(); |
|||
int getBet(int balance); |
|||
int subtractBetFromBalance(int bet, int balance); |
|||
void createSymbols(Symbol symbols[]); |
|||
|
|||
#endif // SLOT_MACHINE_H |
Write
Preview
Loading…
Cancel
Save
Reference in new issue