Browse Source

Update Implementation Methode AIGridGUI

main
Thoumi Ngonga Brice 2 years ago
parent
commit
2ebf65ff1b
  1. 9
      src/main/java/BattleShip/AIGridGUI.java

9
src/main/java/BattleShip/AIGridGUI.java

@ -252,6 +252,15 @@ public class AIGridGUI extends JPanel {
}
up.setCell(u);
up.setCount(upCount);
int d = f;
int downCount = -1;
while(d >= 0 && cellsHit[d] && !cellsKilled[d]) {
d = moveDown(d);
downCount++;
}
down.setCell(d);
down.setCount(downCount);
}
}

Loading…
Cancel
Save