Added draft and wrote TODO's to RumbleBot.java
This commit is contained in:
parent
82ab1e9717
commit
0b5ff137e4
@ -1,4 +1,5 @@
|
||||
public class RumbleBot extends Bot{
|
||||
private String moves = "";
|
||||
public static void main(String[] args) {
|
||||
Bot rumbleBot = new RumbleBot(args);
|
||||
rumbleBot.run();
|
||||
@ -9,6 +10,15 @@ public class RumbleBot extends Bot{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user