diff --git a/src/main/c/Stefan/slot_machine.c b/src/main/c/Stefan/slot_machine.c index d959827..3819894 100644 --- a/src/main/c/Stefan/slot_machine.c +++ b/src/main/c/Stefan/slot_machine.c @@ -134,14 +134,12 @@ int getWinnings(char symbols[], int bet){ } bool checkForMaxWin(char symbols[]){ - bool maxWin = true; for(int i = 1; i < NUM_OF_SYMBOLS; i++){ if(symbols[0] != symbols[i]){ - maxWin = false; - return maxWin; + return false; } } - return maxWin; + return true; } void showResult(char symbols[], int winnings){