Created
April 6, 2018 17:12
-
-
Save JAStanton/083ea6a2a3eaa4ac0568bb30c382c3f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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