Commit f52e3af7 authored by bradley.vernon's avatar bradley.vernon

valadation improvments

parent 7daaf1d7
......@@ -22,21 +22,21 @@ public class ComputerInput {
for (int i = 0 ; i < BSMain.ships.size() ; i ++) {
for (int i = 0 ; i < BSMain.ships.size(); i++) {
if (BSMain.computerG.MoveValidCheck(BSMain.computerG, BSMain.computerS.moves) ) {
String x = (String) CoOrdRandomiser().get(0);
String y = (String) CoOrdRandomiser().get(1);
String coOrd = x + y ;
String x = (String) CoOrdRandomiser().get(0);
String y = (String) CoOrdRandomiser().get(1);
String coOrd = x + y ;
BSMain.computerS.ShipPlacer(BSMain.ships.get(i),x,y);
BSMain.computerS.ShipPlacer(BSMain.ships.get(i),x,y);
if (!BSMain.computerG.MoveValidCheck(BSMain.computerG, BSMain.computerS.moves) ) {
i--;
}
else {
i --;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment