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 class ShipsPlacedReader implements Runnable {
public void run() { public void run() {
while (grid1 == null && grid2 == null) {
while (grid1 != null && grid2 != null) {
while (!shipsPlaced) { while (!shipsPlaced) {
synchronized (lock) { synchronized (lock) {
try { try {

Loading…
Cancel
Save