Sudoku review #1

Open
BordedDev wants to merge 19 commits from BordedDev/sudoku:main into main
Showing only changes of commit ab8b28feba - Show all commits

View File

@ -198,9 +198,7 @@ class SudokuPuzzle extends EventTarget {
* @return boolean * @return boolean
*/ */
isValueValidForSlot(value, slot, state = this.#activeState) { isValueValidForSlot(value, slot, state = this.#activeState) {
return !this.#boxGetValues(slot, state) return !this.getValues(slot, state).has(value)
.union(this.#crossGetValues(slot, state))
.has(value)
} }
/** /**