Ejemplo n.º 1
0
  @Override
  public void stoneInteract(Stone stone) {
    int comesFrom = stone.getFromWhere();
    int furtherTo = (comesFrom + 3) % 6;
    this.nbField = this.field.getNeighbour(furtherTo);

    if (this.nbField.getItem() == null) {
      this.dereg();
      this.reg();
      stone.push();
    }
  }