Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class RandomBot extends Bot{
- public RandomBot(){
- this.name="RandomBot";
- }
- @Override
- public Action action(int[][] map) {
- return new Action[]{Action.UP,Action.DOWN,Action.LEFT,Action.RIGHT,Action.PASS}[(new Random()).nextInt(5)];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement