Commit 7daaf1d7 authored by BRADLEY VERNON's avatar BRADLEY VERNON

Add tempStage.

parent d4115f0d
...@@ -109,7 +109,12 @@ public class BSMain extends Application{ ...@@ -109,7 +109,12 @@ public class BSMain extends Application{
// disable during placing stage // disable during placing stage
// enable once all ships are placed // enable once all ships are placed
// notify user in changing of stages // notify user in changing of stages
// figure out how to do all of the above
Boolean tempStage= false;
if (tempStage) {
String HmnMove = x + y; String HmnMove = x + y;
String CmptrMove = (String) ComputerInput.CoOrdRandomiser().get(0) String CmptrMove = (String) ComputerInput.CoOrdRandomiser().get(0)
+ (String) ComputerInput.CoOrdRandomiser().get(1); + (String) ComputerInput.CoOrdRandomiser().get(1);
...@@ -117,7 +122,10 @@ public class BSMain extends Application{ ...@@ -117,7 +122,10 @@ public class BSMain extends Application{
BattleClass.fire(computerS, HmnMove); BattleClass.fire(computerS, HmnMove);
BattleClass.fire(playerS, CmptrMove); BattleClass.fire(playerS, CmptrMove);
}
else {
label.setText("Place all ships before firing");
}
} }
......
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