Hello guys , today we will be continuing
the sudoku solver project using
javascript. In the last episode
we made a unsolved sudoku , and two
methods which will return the position
of the empty rooms and return the column form
of the sudoku. today m we will be making the
method which will return the possible numbers
that could be in the empty rooms. So lets get
started.
So here , we have made the method by the name of fillEmptyRooms and it will get all the possible numbers , according to the adjacent row and column of the empty room. So how this works s , we first get the adjacent row and column of the empty room , which i have defined as current row and cuurrent column , then we check if any number from 1 to 4 exists in the column or row. If it does , then we break the process and move to the next number. if it doesn't , we push it to the possibleNumbers object according to the position.
So that's it for today guys , bye!
Source Code :
https://github.com/sdcard2008/SudokuS...
On this page of the site you can watch the video online Sudoku Solver Using Javascript Part #2 with a duration of hours minute second in good quality, which was uploaded by the user SapDoesStuff 09 May 2022, share the link with friends and acquaintances, this video has already been watched 141 times on youtube and it was liked by 18 viewers. Enjoy your viewing!