package ch.epfl.maze.physical.stragegies.picker; import ch.epfl.maze.util.Direction; import java.util.Set; /** * A simple decision maker with no guarantee of randomness. * * @author Pacien TRAN-GIRARD */ public interface SimplePicker extends BlindPicker { @Override default Direction pick(Set choices) { if (choices.isEmpty()) return FALLBACK_DIRECTION; return choices.stream().findFirst().get(); } }