Browse Source

refactoring:

main
fdai4581 2 years ago
parent
commit
6122855213
  1. 2
      src/main/java/BattleShip/BShip.java

2
src/main/java/BattleShip/BShip.java

@ -169,7 +169,7 @@ public class BShip {
public class ShipsPlacedReader implements Runnable {
public void run() {
while (grid1 == null && grid2 == null) {
while (grid1 != null && grid2 != null) {
while (!shipsPlaced) {
synchronized (lock) {
try {

Loading…
Cancel
Save