summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-06-02 10:17:26 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-06-02 10:18:15 +0800
commita21182592bc2b57eac8d2c53df1cfde30d438372 (patch)
treee1fa3ee3bff74cfce26cf6eb32326c918b2d6481
parent286012bcbca33d471f4f82f9a14bbe70ec55b64b (diff)
Increase minimum map size to 5x5
-rw-r--r--README2
-rw-r--r--sirtet.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/README b/README
index 4629ec5..ee07278 100644
--- a/README
+++ b/README
@@ -53,7 +53,7 @@ optional arguments:
$ ./sirtet -h [height] -w [width] -p [pieces]
-The minimum value is 4 for height and width, and 1 for piece. Default
+The minimum value is 5 for height and width, and 1 for piece. Default
values are 8, 8, and 3.
---------------------------------- UI ----------------------------------
diff --git a/sirtet.c b/sirtet.c
index aa37feb..9a2ef69 100644
--- a/sirtet.c
+++ b/sirtet.c
@@ -259,15 +259,15 @@ int main(int argc, char *argv[]) {
switch (opt) {
case 'h':
sscanf(optarg, "%d", &H);
- if (H < 4) {
- printf("Map height cannot be less than 4\n");
+ if (H < 5) {
+ printf("Map height cannot be less than 5\n");
return 1;
}
break;
case 'w':
sscanf(optarg, "%d", &W);
- if (W < 4) {
- printf("Map width cannot be less than 4\n");
+ if (W < 5) {
+ printf("Map width cannot be less than 5\n");
return 1;
}
break;