From: Mazet Laurent Date: Wed, 5 Jun 2024 19:32:51 +0000 (+0200) Subject: optimal positioning X-Git-Tag: v1.0~1 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=f9224cf1765148e1886df32c616bad005adcc41e;p=bs.git optimal positioning --- diff --git a/battleships.c b/battleships.c index 423b170..1daab65 100644 --- a/battleships.c +++ b/battleships.c @@ -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;