|
|
|
|
|
|
|
|
public class RumbleBot extends Bot{ |
|
|
public class RumbleBot extends Bot{ |
|
|
|
|
|
private String moves = ""; |
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|
Bot rumbleBot = new RumbleBot(args); |
|
|
Bot rumbleBot = new RumbleBot(args); |
|
|
rumbleBot.run(); |
|
|
rumbleBot.run(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected char nextMove(View view){ |
|
|
protected char nextMove(View view){ |
|
|
return 0; |
|
|
|
|
|
|
|
|
return walk(); //@TODO Add nextMove() logic |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private char walk(){ |
|
|
|
|
|
if(moves.isEmpty()){ |
|
|
|
|
|
moves += ' '; //@TODO Add walk() logic |
|
|
|
|
|
} |
|
|
|
|
|
char nextMove = moves.charAt(0); |
|
|
|
|
|
moves = moves.substring(1); |
|
|
|
|
|
return nextMove; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |