Simplified is valid func
This commit is contained in:
		
							parent
							
								
									f08cd376a2
								
							
						
					
					
						commit
						ab8b28feba
					
				| @ -198,9 +198,7 @@ class SudokuPuzzle extends EventTarget { | ||||
| 	 * @return boolean | ||||
| 	 */ | ||||
| 	isValueValidForSlot(value, slot, state = this.#activeState) { | ||||
| 		return !this.#boxGetValues(slot, state) | ||||
| 			.union(this.#crossGetValues(slot, state)) | ||||
| 			.has(value) | ||||
| 		return !this.getValues(slot, state).has(value) | ||||
| 	} | ||||
| 
 | ||||
| 	/** | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 BordedDev
						BordedDev