Skip to content

Instantly share code, notes, and snippets.

@dsasse07
Last active February 17, 2021 17:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dsasse07/1fb468d96fd0bb78e7bd74932d184e54 to your computer and use it in GitHub Desktop.
Helper function for checking number placement
const safeToPlace = ( puzzleArray, emptyCell, num ) => {
return rowSafe(puzzleArray, emptyCell, num) &&
colSafe(puzzleArray, emptyCell, num) &&
boxSafe(puzzleArray, emptyCell, num)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment