fixed small bugs
This commit is contained in:
parent
c66f1ba2cb
commit
838d092dab
@ -15,14 +15,14 @@ import java.util.Random;
|
||||
|
||||
public class SnakeBot extends Bot{
|
||||
private String moves = "";
|
||||
boolean frontIsBlocked, backIsBlocked, leftIsBlocked, rightIsBlocked, trapped;
|
||||
private boolean frontIsBlocked, backIsBlocked, leftIsBlocked, rightIsBlocked, trapped;
|
||||
private char previousTurn = '<';
|
||||
private int spiralFactor = 1;
|
||||
private char spiralDirection = '>';
|
||||
private boolean goesForward = true;
|
||||
public static void main(String[] args) {
|
||||
Bot SnakeBot = new SnakeBot(args);
|
||||
SnakeBot.run();
|
||||
Bot snakeBot = new SnakeBot(args);
|
||||
snakeBot.run();
|
||||
}
|
||||
|
||||
protected SnakeBot(String[] args) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user