(rows, x, y)
| 65 | } |
| 66 | |
| 67 | function conflictExists(rows, x, y) { |
| 68 | let i_max = Math.min(rows.length - 1, y); |
| 69 | let cell = { x: x, y: y }; |
| 70 | for (let i = 0; i <= i_max; i++) { |
| 71 | let row = rows[i]; |
| 72 | for (let j = 0; j < row.length; j++) { |
| 73 | if (cellsConflict(cell, row[j])) { |
| 74 | return true; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | function allBlank(rows, y, xMin, xMax) { |
| 82 | for (let x = xMin; x < xMax; x++) { |
no test coverage detected
searching dependent graphs…