Skip to content

Instantly share code, notes, and snippets.

@JAStanton
Created April 6, 2018 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JAStanton/083ea6a2a3eaa4ac0568bb30c382c3f5 to your computer and use it in GitHub Desktop.
Save JAStanton/083ea6a2a3eaa4ac0568bb30c382c3f5 to your computer and use it in GitHub Desktop.
const goodPuzzle = [
[1, 4, 5, 3, 2, 7, 6, 9, 8],
[8, 3, 9, 6, 5, 4, 1, 2, 7],
[6, 7, 2, 9, 1, 8, 5, 4, 3],
[4, 9, 6, 1, 8, 5, 3, 7, 2],
[2, 1, 8, 4, 7, 3, 9, 5, 6],
[7, 5, 3, 2, 9, 6, 4, 8, 1],
[3, 6, 7, 5, 4, 2, 8, 1, 9],
[9, 8, 4, 7, 6, 1, 2, 3, 5],
[5, 2, 1, 8, 3, 9, 7, 6, 4],
];
const badPuzzle = [
[2, 4, 5, 3, 2, 7, 6, 9, 8],
[8, 3, 9, 6, 5, 4, 1, 2, 7],
[6, 7, 2, 9, 1, 8, 5, 4, 3],
[4, 9, 6, 1, 8, 5, 3, 7, 2],
[2, 1, 8, 4, 7, 3, 9, 5, 6],
[7, 5, 3, 2, 9, 6, 4, 8, 1],
[3, 6, 7, 5, 4, 2, 8, 1, 9],
[9, 8, 4, 7, 6, 1, 1, 3, 5],
[5, 2, 1, 8, 3, 9, 7, 6, 4],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment