Browse Source

refactoring: Konsolenausgabe etwas schoener formatiert

remotes/origin/dev
fdai7472 11 months ago
parent
commit
12ff8cbc05
  1. 1
      src/main/c/Stefan/slot_machine.c

1
src/main/c/Stefan/slot_machine.c

@ -126,6 +126,7 @@ int getWinnings(char symbols[], int bet){
} }
void showResult(char symbols[]){ void showResult(char symbols[]){
printf("\n");
for (int i = 0; i < ROWS; i++){ for (int i = 0; i < ROWS; i++){
printf(" %c | %c | %c\n", symbols[i * ROWS], symbols[i * ROWS + 1], symbols[i * ROWS + 2]); printf(" %c | %c | %c\n", symbols[i * ROWS], symbols[i * ROWS + 1], symbols[i * ROWS + 2]);

Loading…
Cancel
Save