public Sweep(Board board, IClearingRule clearingRule) { this.board = board; this.counter = 0; this.clearingRule = clearingRule; // Scale the update interval based on the size of the board updateInterval = Math.Max(1, (int)(10 / Math.Round(((decimal)(board.Width + board.Height)) / 10m))); }