From f9224cf1765148e1886df32c616bad005adcc41e Mon Sep 17 00:00:00 2001 From: Mazet Laurent Date: Wed, 5 Jun 2024 21:32:51 +0200 Subject: [PATCH] optimal positioning --- battleships.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.30.2