Browse Source

Added task descriptions and removed walkByColumns and walkByCircles

testing_N
Illia Soloviov 11 months ago
parent
commit
54a1ca4511
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      src/RumbleBot.java
  2. 1
    1
      src/SnakeBot.java

+ 2
- 2
src/RumbleBot.java View File

} }


protected char nextMove(View view){ protected char nextMove(View view){
return walk(); //@TODO Add nextMove() logic
return walk(); //@TODO: add nextMove() logic
} }


private char walk(){ private char walk(){
if(moves.isEmpty()){ if(moves.isEmpty()){
moves += ' '; //@TODO Add walk() logic
moves += ' '; //@TODO: add walk() logic
} }
char nextMove = moves.charAt(0); char nextMove = moves.charAt(0);
moves = moves.substring(1); moves = moves.substring(1);

+ 1
- 1
src/SnakeBot.java View File

protected SnakeBot(String[] args) { protected SnakeBot(String[] args) {
super(args); super(args);
} }
//@TODO Find a better way to avoid collectedStones
//@TODO: find a better way to avoid collectedStones
protected char nextMove(View view){ protected char nextMove(View view){
boolean stoneDetected = view.data.contains("@"); boolean stoneDetected = view.data.contains("@");
char nextMove; char nextMove;

Loading…
Cancel
Save