Skip to content

Commit

Permalink
fix: bug fix and remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
komeilmehranfar committed Apr 15, 2024
1 parent 61efbc7 commit 8702093
Show file tree
Hide file tree
Showing 6 changed files with 1,249 additions and 1,213 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sudoku-core",
"version": "2.0.7",
"version": "2.1.0",
"description": "A typescript Sudoku package for generating, solving (step-by-step or all), and analyzing Sudoku boards with ease. Perfect for building Sudoku games and integrating Sudoku functionality into your applications.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
1 change: 0 additions & 1 deletion src/sudoku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,6 @@ export function createSudokuInstance(options: Options = {}) {
// Reset candidates, only in model.
resetCandidates();
const boardAnalysis = analyzeBoard();
console.log({ removalCount, score: boardAnalysis.score });
if (
isValidAndEasyEnough(boardAnalysis, difficulty) &&
isUniqueSolution(getBoard())
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const calculateBoardDifficulty = (
: DIFFICULTY_HARD;

if (totalScore > 750) difficulty = DIFFICULTY_EXPERT;
if (totalScore > 1000) difficulty = DIFFICULTY_MASTER;
if (totalScore > 2200) difficulty = DIFFICULTY_MASTER;

return {
difficulty,
Expand Down
Loading

0 comments on commit 8702093

Please sign in to comment.