Skip to content

Instantly share code, notes, and snippets.

@stevestreza
Created August 30, 2016 22:12
Show Gist options
  • Save stevestreza/53e9015f32bf49dda8ed45b8031d0d03 to your computer and use it in GitHub Desktop.
Save stevestreza/53e9015f32bf49dda8ed45b8031d0d03 to your computer and use it in GitHub Desktop.
<?php
$solution_correct = array(
array(3,7,8,1,4,5,6,2,9),
array(1,4,9,8,6,2,7,5,3),
array(5,2,6,3,9,7,1,4,8),
array(8,3,5,9,2,1,4,7,6),
array(2,6,1,4,7,3,8,9,5),
array(7,9,4,6,5,8,3,1,2),
array(9,8,3,5,1,4,2,6,7),
array(6,1,7,2,8,9,5,3,4),
array(4,5,2,7,3,6,9,8,1)
);
$solution_incorrect = array(
array(3,7,8,1,4,5,6,2,9),
array(1,4,9,8,6,2,7,5,3),
array(5,2,6,3,9,7,1,4,8),
array(8,3,5,9,2,1,4,7,6),
array(2,6,1,4,7,3,8,9,5),
array(7,9,4,6,5,8,3,1,2),
array(9,8,3,5,1,4,2,6,7),
array(6,1,7,2,8,9,5,3,4),
array(2,5,2,7,3,6,9,8,1)
);
function validate_solution ($solution) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment