Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
        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)));
        }