implement SudokuSolver.validate() method and write unit tests for method

This commit is contained in:
StevanFreeborn
2022-05-20 21:25:24 -05:00
parent a1a7c1984e
commit 25a78cb208
2 changed files with 41 additions and 2 deletions
+9
View File
@@ -1,18 +1,27 @@
class SudokuSolver {
validate(puzzleString) {
return puzzleString.length == 81 && !puzzleString.match(/[^\.\d]/g);
}
checkRowPlacement(puzzleString, row, column, value) {
}
checkColPlacement(puzzleString, row, column, value) {
}
checkRegionPlacement(puzzleString, row, column, value) {
}
solve(puzzleString) {