Browse Source

update bship class

main
Thoumi Ngonga Brice 2 years ago
parent
commit
488ea3604a
  1. 10
      src/main/java/BattleShip/BShip.java
  2. BIN
      target/classes/BattleShip/BShip$NewGameListener.class
  3. BIN
      target/classes/BattleShip/BShip.class
  4. BIN
      target/classes/PingPong/GamePanel$AL.class
  5. BIN
      target/classes/PingPong/GamePanel.class

10
src/main/java/BattleShip/BShip.java

@ -39,7 +39,15 @@ public class BShip {
grid2.placeShips(); 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() { public void buildGUI() {

BIN
target/classes/BattleShip/BShip$NewGameListener.class

BIN
target/classes/BattleShip/BShip.class

BIN
target/classes/PingPong/GamePanel$AL.class

BIN
target/classes/PingPong/GamePanel.class

Loading…
Cancel
Save