This commit is contained in:
Your Average Code 2024-01-25 01:11:13 +01:00
parent c7a576dfab
commit 7c8386d879

23
src/DummyBot.java Normal file
View File

@ -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 -> '^';
};
}
}