Compare commits
	
		
			3 Commits
		
	
	
		
			058dc13c1c
			...
			3c6d69c343
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3c6d69c343 | |||
| 1ff71d099e | |||
| ae9016fbf6 | 
@ -5,9 +5,12 @@ const maths = {};
 | 
			
		||||
 | 
			
		||||
expose({
 | 
			
		||||
  generate(regionWidth, regionHeight, clues) {
 | 
			
		||||
    const key = `${regionWidth}:${regionHeight}`;
 | 
			
		||||
    const math =
 | 
			
		||||
      maths[key] ?? (maths[key] = new SudokuMath(regionWidth, regionHeight));
 | 
			
		||||
      maths[`${regionWidth}:${regionHeight}`] ||
 | 
			
		||||
      (maths[`${regionWidth}:${regionHeight}`] = new SudokuMath(
 | 
			
		||||
        regionWidth,
 | 
			
		||||
        regionHeight
 | 
			
		||||
      ));
 | 
			
		||||
    return math.generate(clues);
 | 
			
		||||
  },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user