()
| 62 | } |
| 63 | |
| 64 | end() { |
| 65 | this.colPos = this.getColPos(); |
| 66 | if (this.colPos === 0) { |
| 67 | const endRowPos = this.grid.length - 1; |
| 68 | const lastRowPos = endRowPos + this.lastRowPos; |
| 69 | this.rowPos = (this.rowPos < lastRowPos) ? lastRowPos : endRowPos; |
| 70 | } else { |
| 71 | const lastColPos = this.grid[this.rowPos].length - 1; |
| 72 | this.colPos = (this.colPos < lastColPos) ? lastColPos : 0; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | setGrid(grid: unknown[][]) { |
| 77 | this.grid = grid; |
no test coverage detected