Closed ghost closed 3 years ago
@GuerreiroSpiral Actually the red button stops drawing, but the sorting is still hapenning. Then, when finished, the sorted array is drawn, this makes the process faster which looks like the sorting was aborted. The problem here is that 'bogosort' isnt a proper sorting algorithm, so it keeps sorting forever. I was to fix it, so the sorting really stops, but i intend to make other changes before.
Got it, thanks for clarifying.
Hi, I'd like to fix the BogoSort so that it doesn't loop infinitely by pausing the sort after a set time period should an input be too large to finish reasonably. Can I take care of that? Looks like this issue is still open.
@bdanzig Hey, thanks for contributing. I will have a look to yours commits.
I don't really have much to say. It just seems that pausing Bogo Sort during it's execution freezes the app everytime, using pygame 2.0.1. I couldn't replicate this behaviour with other algorithms.