From 89112100123b8349aec6887c03766a095fcac0f4 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Tue, 7 Feb 2023 21:00:32 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/GridGUI.java | 8 +++++++- target/classes/BattleShip/AIGridGUI.class | Bin 10055 -> 10192 bytes target/classes/BattleShip/GridGUI.class | Bin 1068 -> 0 bytes 3 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 target/classes/BattleShip/GridGUI.class diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index 627c7b9..d537acd 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -24,5 +24,11 @@ public class GridGUI { public void setShipLocations() { + + for (Ship s : allShips) { + int shipLength = s.getLength(); + int clearSpace = 0; + testLocations = new int[shipLength]; + } } -} +} \ No newline at end of file diff --git a/target/classes/BattleShip/AIGridGUI.class b/target/classes/BattleShip/AIGridGUI.class index 487df6c0615f20130b48fcd178b7409992e0ea4b..0daa0ac17b3cf55e9f076a35f945f57470089c4b 100644 GIT binary patch delta 320 zcmX@^cfp_Q)W2Q(7#J9A8E0kz-u=*{Q@DaG1;`d* sU}kIun%fN~d%Xa9v4OD> zNV738F}z@uVr&AkMHrYFn;94xJHcc(nCxZj2g*n>Ff+Vh;AWh_z`!U4q$dLDNsLn% Ir!hzZ0AQ~s+W-In diff --git a/target/classes/BattleShip/GridGUI.class b/target/classes/BattleShip/GridGUI.class deleted file mode 100644 index 104df17d1394a413d7810b7c5e432fe09b494214..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1068 zcmah|T~8B16g|@xwk?B&@}-DUP_eB*6~8T@6s2j>$U_xFeA+GxEZKI+?5>8N2R zz~W`xu3qe_)~cC7RM)El#s6N{oSLh{5jkxJjvaYsiiwXL>Ois4DDAMi&0vq&b4_yb zHtw`t_0DelJjv@9{tijfxPO?64n5XAezC0np0FmN_&Fr86~xMMw>%w3_WjFxbudR# z6Wrq=e%v?+JfoGsb4o7IU;Ki&id9PJ9Wt718ch<7=G=|uP>tpcjpoFR=47Z@5|?O= za-HZW?IiVa`4po34c6`{GCgF^&5?4lhcV)*-GThIQ(W)ira^=GIfHKX(H(>C8f4{5 z2Hi6#onJDjQs(28@=Onpzc6P4FDX|bDaVoG@0SCY9$CziizT8eM$o`0K9CESeIK#Y gfd9cOz9^j4jSbX@*a0@_6~=l^D?$4WQ36}P0nr58fB*mh