|
|
@ -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() { |
|
|
|