Skip to content

Commit 26e897b

Browse files
committed
feature(main): improve getUserInputStr function arguments
1 parent 35ce4d4 commit 26e897b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/main.c

+5-7
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ int main() {
2626
game.cellsDead = cellDead;
2727

2828
fillDashboard(&game, 0);
29-
30-
// TODO: Replace `XXX` with a formatted version of `options` (global...
31-
// variable).
32-
requestedPattern =
33-
getUserInputStr("Which pattern do you want (XXX)? ",
34-
"Invalid input! Try again...", 50, &validatePattern);
35-
printf("\n'%s'", requestedPattern);
29+
requestedPattern = getUserInputStr(
30+
"> Which pattern do you want "
31+
"('Glider','Toad', 'Press', or 'Glider cannon')? ",
32+
"> Invalid pattern! Try again...", 50, &validatePattern);
33+
printf("> Pattern received: '%s'", requestedPattern);
3634
return 0;
3735
}

0 commit comments

Comments
 (0)