From be64303ad57bc941ed2dacb8af6d6fc4d8c5425f Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Wed, 8 Feb 2023 23:58:13 +0100 Subject: [PATCH] Update --- src/main/java/BattleShip/AIGridGUI.java | 6 ++---- src/main/java/BattleShip/BShip.java | 6 +++--- .../AIGridGUI$DirectionCompare.class | Bin 1093 -> 1093 bytes .../AIGridGUI$SetShipsListener.class | Bin 3153 -> 3153 bytes target/classes/BattleShip/AIGridGUI.class | Bin 10311 -> 10311 bytes .../BShip$IncomingGuessReader.class | Bin 1718 -> 1719 bytes .../BattleShip/BShip$ShipsPlacedReader.class | Bin 1142 -> 1138 bytes 7 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/BattleShip/AIGridGUI.java b/src/main/java/BattleShip/AIGridGUI.java index 1cf8be4..f3d9bfe 100644 --- a/src/main/java/BattleShip/AIGridGUI.java +++ b/src/main/java/BattleShip/AIGridGUI.java @@ -1,11 +1,9 @@ package BattleShip; import javax.swing.*; -import javax.swing.border.Border; +import javax.swing.border.*; import java.awt.*; -import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; -import java.util.ArrayList; +import java.awt.event.*; import java.util.*; diff --git a/src/main/java/BattleShip/BShip.java b/src/main/java/BattleShip/BShip.java index 032d572..89cd601 100644 --- a/src/main/java/BattleShip/BShip.java +++ b/src/main/java/BattleShip/BShip.java @@ -150,6 +150,7 @@ public class BShip { } } else { textArea.setText(grid2.getText()); + } if(grid1.getClicked()) { textArea.setText(grid1.getText()); @@ -169,7 +170,7 @@ public class BShip { grid1.setClicked(); } - } + } } } @@ -182,8 +183,7 @@ public class BShip { synchronized (lock) { try { lock.wait(); - } catch (InterruptedException e) { - } + } catch (InterruptedException e) {} } } grid1.enableCells(); diff --git a/target/classes/BattleShip/AIGridGUI$DirectionCompare.class b/target/classes/BattleShip/AIGridGUI$DirectionCompare.class index a2264253294d15852ab9731b2a3bf8384720dbd0..411fa71a64d76c90b53a4770e2a850951b410855 100644 GIT binary patch delta 25 fcmX@gag<|2G&AFd$uZ2qjGHEJV2%K?IazD~cQy!p delta 29 icmX@gag<|2H1p*3%xsernf(~IOy0m80p{_sm;(TxI0>@= diff --git a/target/classes/BattleShip/AIGridGUI$SetShipsListener.class b/target/classes/BattleShip/AIGridGUI$SetShipsListener.class index a43d2b181f002f901269434941a0339db4a73891..9334499daa95705982c20a0bd418708e8412a239 100644 GIT binary patch delta 160 zcmca8aZzGJDhK0^$!Q$HoVyt~822y;GVYz6%dNTjHAgIC>_MQ=AqFYN!wkxdM;M$L zk1>QZ9%sm5Ji*Y!c#@%&@ifC!#xo2{8P788U_8gL56C~lc!A+8<3)z6jF%biGG1eN z%6Nm}H{(r4DaKojN{qJ|^%(Cm8ZzEvv|@ZTc`4U^&SyXyo&zm?0kqVI@#W;d+_ICe LbE`7G0zkPg@P0B(Bi?Uj+Hp*mV;wF?UcykGMWs$<*kVDRi9AcoH?m)`B zJ^yF)RFaXhj8$Z!GE-HUsmfe6 z7HYCo$9A8!W^A-&t22AuIq1ug04GA6iE$y$l>|3a^L9NCD?BawvS^C8`ME)}b0d80 G%KQP3X*T-+ diff --git a/target/classes/BattleShip/AIGridGUI.class b/target/classes/BattleShip/AIGridGUI.class index 7c2fc5bd672961764cb2ddde77c063b5c96e8690..f16ca3f15b2b9d070bb472e852dc6a6203776d00 100644 GIT binary patch delta 1168 zcmWNQdu+~U6vsc`^Zcx+xAd~w+oIjts(alwOeZU2TW!`V#f({Xu}0jLk!3Fy_o(r@ z4l$u|8(CJj*vv?#hE0~RY%vx^Y<0h^B8)wG{y673&pFBGd%k(93#tpg-kKE2At08< zG$Mr%Su~*yN#yVxU45kwspOMJAuSe%f-BcKl3x zey0=X=}ZkTaffb#?rKaAwcurC(NpcnRTqEnkx!ob(p!b}(Fk5s8GTjGo0?6&me5~o zc}tZPXfK62NRdu5NM{(Va}?_eLv-EO?((h$46mB_>^((BdEyU9r^M5a_Ecl&$XIfj zKpvBLo5^0o6iS)O$3D*XN|yR;9W&U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