Browse Source

update

main
fdai4581 2 years ago
parent
commit
fafd2f370b
  1. 18
      src/main/java/BattleShip/BShip.java
  2. BIN
      target/classes/BattleShip/BShip.class

18
src/main/java/BattleShip/BShip.java

@ -166,4 +166,22 @@ public class BShip {
} }
} }
} }
public class ShipsPlacedReader implements Runnable {
public void run() {
while (grid1 == null && grid2 == null) {
while (!shipsPlaced) {
synchronized (lock) {
try {
lock.wait();
} catch (InterruptedException e) {
}
}
}
grid1.enableCells();
auto.setEnabled(false);
break;
}
}
}
} }

BIN
target/classes/BattleShip/BShip.class

Loading…
Cancel
Save