diff --git a/src/main/java/BattleShip/BShip.java b/src/main/java/BattleShip/BShip.java index b7fe9dd..032d572 100644 --- a/src/main/java/BattleShip/BShip.java +++ b/src/main/java/BattleShip/BShip.java @@ -39,7 +39,15 @@ public class BShip { grid2.placeShips(); } - //.. + //Start threads to check if ships have been placed and if guesses have been made. + + Runnable reader = new IncomingGuessReader(); + Thread readerThread = new Thread(reader); + readerThread.start(); + + Runnable spReader = new ShipsPlacedReader(); + Thread spReaderThread = new Thread(spReader); + spReaderThread.start(); } public void buildGUI() { diff --git a/target/classes/BattleShip/BShip$NewGameListener.class b/target/classes/BattleShip/BShip$NewGameListener.class index 30306ba..7fda895 100644 Binary files a/target/classes/BattleShip/BShip$NewGameListener.class and b/target/classes/BattleShip/BShip$NewGameListener.class differ diff --git a/target/classes/BattleShip/BShip.class b/target/classes/BattleShip/BShip.class index c90ea35..a918404 100644 Binary files a/target/classes/BattleShip/BShip.class and b/target/classes/BattleShip/BShip.class differ diff --git a/target/classes/PingPong/GamePanel$AL.class b/target/classes/PingPong/GamePanel$AL.class index fb0c399..8592c1a 100644 Binary files a/target/classes/PingPong/GamePanel$AL.class and b/target/classes/PingPong/GamePanel$AL.class differ diff --git a/target/classes/PingPong/GamePanel.class b/target/classes/PingPong/GamePanel.class index b5a0ce9..194c31a 100644 Binary files a/target/classes/PingPong/GamePanel.class and b/target/classes/PingPong/GamePanel.class differ