Skip to content

Commit

Permalink
double min % for coloree slice
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan4m1 committed Feb 9, 2024
1 parent 6b95c80 commit 498b3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/coloree.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const createRandomColor = () =>
export const createRandomPuzzle = (difficulty = 1) => {
const colorCount = Math.ceil(Math.random() * difficulty) + 2;
const colors = [];
const minPct = 0.05;
const minPct = 0.1;
let remainingPct = 1;

while (colors.length < colorCount) {
Expand Down

0 comments on commit 498b3ab

Please sign in to comment.