Пример #1
0
  public TentsAndTrees(PlayingField playingField) {
    if (playingField == null) {
      throw new IllegalArgumentException("PlayingField is null.");
    }

    gameField = playingField.getPlayingField();
    columnHints = playingField.getColumnHints();
    rowHints = playingField.getRowHints();

    this.height = gameField.length;
    this.width = gameField[0].length;
  }