Have an option for omitting the animation to find and display all of the solutions as quickly as possible.
This may mean rewriting the current manual recursion stack to use built in recursion. Ideally this would be written in a way which allows it to be used for both the slow animated approach and the fast approach.
Would coroutines / generator functions allow animation during a recursive process, and also allow high speed processing without animation?
Ideally the page would remain responsive to inputs during solving, but not redraw between every step of the algorithm. Perhaps running as many consecutive steps as can fit into a few milliseconds (perhaps a user input threshold?) and then returning control to the event loop.
Have an option for omitting the animation to find and display all of the solutions as quickly as possible.
This may mean rewriting the current manual recursion stack to use built in recursion. Ideally this would be written in a way which allows it to be used for both the slow animated approach and the fast approach.
Would coroutines / generator functions allow animation during a recursive process, and also allow high speed processing without animation?
Ideally the page would remain responsive to inputs during solving, but not redraw between every step of the algorithm. Perhaps running as many consecutive steps as can fit into a few milliseconds (perhaps a user input threshold?) and then returning control to the event loop.