Skip to content

Instantly share code, notes, and snippets.

@dsasse07
Last active February 17, 2021 17:32
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