add board 12x12
authorLaurent Mazet <mazet@softndesign.org>
Thu, 4 Jul 2024 21:46:44 +0000 (23:46 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Thu, 4 Jul 2024 21:46:44 +0000 (23:46 +0200)
constant.c

index e04d429bc8b76503e2b17ba6cffbd865d19fc575..259942e4f8b7c6dde6a3723401cc119fc440cb01 100644 (file)
@@ -31,6 +31,22 @@ board_t _board_10x10 = {
     ". . . . . ",
     0, 0, 0, 0, 0, 0};
 
+board_t _board_12x12 = {
+    12, 12,
+    " . . . . . ."
+    ". . . . . . "
+    " . . . . . ."
+    ". . . . . . "
+    " . . . . . ."
+    ". . . . . . "
+    " . . . . . ."
+    ". . . . . . "
+    " . . . . . ."
+    ". . . . . . "
+    " . . . . . ."
+    ". . . . . . ",
+    0, 0, 0, 0, 0, 0};
+
 board_t *getboard (char *name)
 {
     board_t *pt = NULL;
@@ -39,8 +55,10 @@ board_t *getboard (char *name)
         pt = &_board_8x8;
     } else if (strcmp (name, "10x10") == 0) {
         pt = &_board_10x10;
+    } else if (strcmp (name, "12x12") == 0) {
+        pt = &_board_12x12;
     } else if (strcmp (name, "list") == 0) {
-        printf ("board: 8x8 10x10\n");
+        printf ("board: 8x8 10x10 12x12\n");
         pt = (board_t *)(-1);
     }