diff --git a/src/DummyBot.java b/src/DummyBot.java new file mode 100644 index 0000000..c231b8a --- /dev/null +++ b/src/DummyBot.java @@ -0,0 +1,23 @@ +import java.util.Random; + +public class DummyBot extends Bot { + protected final Random random = new Random(); + + public static void main(String[] args) { + Bot bot = new DummyBot(args); + bot.run(); + } + + protected DummyBot(String[] args) { + super(args); + } + + @Override + protected char nextMove(View view) { + return switch (random.nextInt(3)) { + case 1 -> '<'; + case 2 -> '>'; + default -> '^'; + }; + } +}