diff --git a/SnakeBot.java b/SnakeBot.java new file mode 100644 index 0000000..c2bf45e --- /dev/null +++ b/SnakeBot.java @@ -0,0 +1,49 @@ + +import java.util.Scanner; + +public class SnakeBot extends Bot { + + // int rounds = ; + int steps = 1; + public SnakeBot(String [] args) { + super(args); + } + + @Override + public char nextMove(View view) throws Exception { + + rounds++; + + switch(rounds){ + case 3: + rounds = 0; + move(steps); + steps++; + return '<'; + default: + move(steps); + steps++; + } + return 0; + + } + + public char move(int s){ + for(int i = 0; i < s; i++){ + return '^'; + } + return 0; + } + + + public static void main(String[] args) { + SnakeBot bot = new SnakeBot(args); + bot.run(); + } + + +} + + + +