tools/sample_bots/java/RandomBot.java
import java.util.*;

public class RandomBot implements Bot {
	public static void main(String[] args) {
		Ants.run(new RandomBot());
	}
	
	public void do_turn(Ants ants) {
		Set<Tile> destinations = new HashSet<Tile>();
		for (Tile location : ants.myAnts()) {
			List<Aim> directions = new ArrayList<Aim>(EnumSet.allOf(Aim.class));
			Collections.shuffle(directions);
			boolean issued = false;
			for (Aim direction : directions) {
				Tile destination = ants.tile(location, direction);
				if (ants.ilk(destination).isUnoccupied() && !destinations.contains(destination)) {
					ants.issueOrder(location, direction);
					destinations.add(destination);
					issued = true;
					break;
				}
			}
			if (!issued) {
				destinations.add(location);
			}
		}
	}
}

