Sudoku Solver Using Javascript Part #2

Опубликовано: 09 Май 2022
на канале: SapDoesStuff
141
18

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...


На этой странице сайта вы можете посмотреть видео онлайн Sudoku Solver Using Javascript Part #2 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь SapDoesStuff 09 Май 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 141 раз и оно понравилось 18 зрителям. Приятного просмотра!