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

valadation improvments

parent 7daaf1d7
......@@ -22,9 +22,7 @@ public class ComputerInput {
for (int i = 0 ; i < BSMain.ships.size() ; i ++) {
if (BSMain.computerG.MoveValidCheck(BSMain.computerG, BSMain.computerS.moves) ) {
for (int i = 0 ; i < BSMain.ships.size(); i++) {
String x = (String) CoOrdRandomiser().get(0);
String y = (String) CoOrdRandomiser().get(1);
......@@ -32,12 +30,14 @@ public class ComputerInput {
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