optimal positioning
authorMazet Laurent <mazet@softndesign.org>
Wed, 5 Jun 2024 19:32:51 +0000 (21:32 +0200)
committerMazet Laurent <mazet@softndesign.org>
Wed, 5 Jun 2024 19:32:51 +0000 (21:32 +0200)
battleships.c

index 423b17052fb2e9627b330a3ce4d3ee8f9710a722..1daab6523505f688f42e5119d2ed8605655bf455 100644 (file)
@@ -112,19 +112,19 @@ int main (int argc, char *argv[])
     int ysize = 10;
     int whelp = 20;
     int wlogs = 70;
-    int hlogs = 4;
+    int hlogs = 6;
 
-    int xhuman = 3;
+    int xhuman = 4;
     int yhuman = 3;
 
     int xcomputer = xhuman + xsize + 5;
     int ycomputer = yhuman;
 
-    int xhelp = xcomputer + xsize + 4;
+    int xhelp = xcomputer + xsize + 6;
     int yhelp = ycomputer - 1;
 
     int xlogs = xhuman;
-    int ylogs = yhuman + ysize + 5;
+    int ylogs = yhuman + ysize + 3;
 
     board_t *boardcomputer = initboard ("Computer", xsize, ysize);
     int n = 0;