Browse Source

made string moves private

testing_N
Illia Soloviov 11 months ago
parent
commit
6c28d6e358
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/SnakeBot.java

+ 3
- 1
src/SnakeBot.java View File

@@ -11,7 +11,7 @@
* Die besten acht Teams qualifizieren sich für die Königsdisziplin „Rumble“.
*/
public class SnakeBot extends Bot{
String moves = "";
private String moves = "";
private int spiralNumber = 0;
private boolean goesForward = true;
private boolean ignoreStones = false;
@@ -115,6 +115,7 @@ public class SnakeBot extends Bot{
}

private char goToStone(View view) {

int rowDifference = findStoneRow(view) - (view.width / 2);
return rowDifference < 0 ? '^' : '<';
}
@@ -173,4 +174,5 @@ public class SnakeBot extends Bot{
moves = moves.substring(1);
return nextMove;
}

}

Loading…
Cancel
Save