Skip to content

Commit 3b1fa58

Browse files
committed
refactor
1 parent b815a91 commit 3b1fa58

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

terminal-minesweeper/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ private static void Main() {
2525
2626
");
2727

28+
const int defaultGameSize = 10;
2829
Coords gameSize = new() {
29-
X = NumInput(new StringColorDataList(Gray, "↔️ Enter game ", ("width ", White), "(press enter for default): "), defaultBackgroundColor, "", 10, 3),
30-
Y = NumInput(new StringColorDataList(Gray, "↕️ Enter game ", ("height ", White), "(press enter for default): "), defaultBackgroundColor, "", 10, 3)
30+
X = NumInput(new StringColorDataList(Gray, "↔️ Enter game ", ("width ", White), "(press enter for default): "), defaultBackgroundColor, "", defaultGameSize, 3),
31+
Y = NumInput(new StringColorDataList(Gray, "↕️ Enter game ", ("height ", White), "(press enter for default): "), defaultBackgroundColor, "", defaultGameSize, 3)
3132
};
3233
int? mineCount = NumInput(new StringColorDataList(Gray, "💣 Enter ", ("mine count ", White), "(press enter for default): "), defaultBackgroundColor, "", -1, 1);
3334
mineCount = mineCount == -1 ? null : mineCount;

0 commit comments

Comments
 (0)