File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ export function generatePuzzleBoard(
454
454
discovered = digData [ "discovered" ] ;
455
455
456
456
if ( ! isSolved ) {
457
- console . log (
457
+ console . debug (
458
458
`[${ getTimeElapsed (
459
459
startTime
460
460
) } s] - Skipping unsolvabled puzzle (${ firstGenCount } pieces construction, iteration n°${ c } )`
@@ -463,7 +463,7 @@ export function generatePuzzleBoard(
463
463
}
464
464
465
465
updateProgress ( firstGenCount / count ) ;
466
- console . log (
466
+ console . debug (
467
467
`[${ getTimeElapsed (
468
468
startTime
469
469
) } s] - ${ firstGenCount } pieces puzzle generated`
@@ -494,7 +494,7 @@ export function generatePuzzleBoard(
494
494
if ( isSolved ) {
495
495
break ;
496
496
} else {
497
- console . log (
497
+ console . debug (
498
498
`[${ getTimeElapsed ( startTime ) } s] - Skipping unsolvabled puzzle (${
499
499
i + 1
500
500
} pieces construction, sub-iteration n°${ c2 } )`
@@ -510,13 +510,13 @@ export function generatePuzzleBoard(
510
510
511
511
// We try to remove tiles to match the difficulty
512
512
if ( ! isSolved ) {
513
- console . log (
513
+ console . debug (
514
514
`[${ getTimeElapsed (
515
515
startTime
516
516
) } s] - Skipping unsolvabled puzzle (iteration n°${ c } )`
517
517
) ;
518
518
} else {
519
- console . log (
519
+ console . debug (
520
520
`[${ getTimeElapsed ( startTime ) } s] - ${ count } pieces puzzle generated`
521
521
) ;
522
522
for ( let i = 0 ; i < data . length ; i ++ ) {
@@ -534,7 +534,7 @@ export function generatePuzzleBoard(
534
534
const emptyCasesAfter = discovered . filter ( ( x ) => x === false ) . length ;
535
535
536
536
if ( difficulty !== - 1 && difficulty > emptyCasesAfter ) {
537
- console . log (
537
+ console . debug (
538
538
`[${ getTimeElapsed (
539
539
startTime
540
540
) } s] - Skipping puzzle with ${ emptyCasesAfter } empty tiles`
You can’t perform that action at this time.
0 commit comments