/** * @param {Matrix} Matrix */ constructor(matrix, runCount = 1) { super(); this.matrix = matrix; this.matrixIndexes = []; this.lastTwoIndexes = []; this.matrixAlphabet = matrix.alphabet; this.shuffledMatrixIndexes = matrix.shuffledIndexes; this._colors = Cell.ColorsList; this.timeout = null; this.iteration = 0; this.runCount = runCount; this.highlightInterval = MatrixRunner.DEFAULT_HIGHLIGHT_INTERVAL; }