[O] Comment
This commit is contained in:
+3
-4
@@ -95,14 +95,13 @@
|
|||||||
if (editMode) {
|
if (editMode) {
|
||||||
cat.solution.forEach(edge => {
|
cat.solution.forEach(edge => {
|
||||||
const [ sx, sy, ex, _ ] = edge
|
const [ sx, sy, ex, _ ] = edge
|
||||||
const isVertical = sx === ex
|
if (sx === ex) { // Vertical edge
|
||||||
if (isVertical) {
|
|
||||||
// The commented lines will show the solution (edges)
|
// The commented lines will show the solution (edges)
|
||||||
// vedgeStates[sy * (eCols) + sx] = 1
|
// vStates[sy * (eCols) + sx] = 1
|
||||||
if (ex != cols) numbers[sy * cols + sx] += 1
|
if (ex != cols) numbers[sy * cols + sx] += 1
|
||||||
if (sx != 0) numbers[sy * cols + sx - 1] += 1
|
if (sx != 0) numbers[sy * cols + sx - 1] += 1
|
||||||
} else {
|
} else {
|
||||||
// hedgeStates[sy * (eCols) + sx] = 1
|
// hStates[sy * (eCols) + sx] = 1
|
||||||
if (ex != rows) numbers[sy * cols + sx] += 1
|
if (ex != rows) numbers[sy * cols + sx] += 1
|
||||||
if (sx != 0) numbers[(sy - 1) * cols + sx] += 1
|
if (sx != 0) numbers[(sy - 1) * cols + sx] += 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user