@logic-pad/core 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,6 +44,10 @@ function backtrack(grid, rawTiles, submitSolution) {
44
44
  return false;
45
45
  }
46
46
  function solveNormal(input, submitSolution) {
47
+ const isValid = validateGrid(input, null);
48
+ if (isValid.final === State.Error) {
49
+ return;
50
+ }
47
51
  // Call backtrack
48
52
  backtrack(input, gridToRawTiles(input), rawTiles => submitSolution(rawTiles ? rawTilesToGrid(rawTiles, input) : null));
49
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logic-pad/core",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",