diff --git a/src/App.svelte b/src/App.svelte index 48e400c..ced3939 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -114,7 +114,7 @@ } } - printSolutions(1) + printSolutions(-1) } const undo = () => { @@ -245,6 +245,10 @@ } const printSolutions = maxSolutionCount => { + if (maxSolutionCount < 0) { + return + } + let depth = 0 let solutions = [] let gameovers = [] diff --git a/src/Button.svelte b/src/Button.svelte index 2433023..89e5533 100644 --- a/src/Button.svelte +++ b/src/Button.svelte @@ -1,6 +1,5 @@