Ejemplo n.º 1
0
  public Direction mapRelativeTo(Direction d) {
    Direction rotation = South.i();
    Direction slot = South.i();

    while (!rotation.equals(d)) {
      slot = slot.clockwise();
      rotation = rotation.clockwise();
    }

    Direction humanOffset = humanBase;
    while (!humanOffset.equals(South.i())) {
      slot = slot.clockwise();
      humanOffset = humanOffset.clockwise();
    }
    return slot;
  }
 public void whenLeadBy(Direction player) {
   givenDeal();
   deal.setNextToPlay(player.getValue());
 }