DummyBot
This commit is contained in:
parent
c7a576dfab
commit
7c8386d879
23
src/DummyBot.java
Normal file
23
src/DummyBot.java
Normal 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 -> '^';
|
||||
};
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user