LucasPilla / Sorting-Algorithms-Visualizer

Program made with Python and Pygame module for visualizing sorting algorithms
MIT License
418 stars 153 forks source link

Bug: sizeBox should not allow null input #184

Closed dvxry closed 6 days ago

dvxry commented 9 months ago

Description

Every time I try to run the visualizer and I am trying to reduce the number of bars, I struggle to notice exactly where my cursor is since it doesn't show up. I often end up just removing all the bars and I end up running the program with nothing in the sizeBox which causes it to promptly crash

Not sure if this counts as a bug but it would be nice to implement a cursor for users to see where they're typing in the textbox and also to control input to a certain number of bars

Potential solution

I don't think it should be too difficult but I suspect doing something as simple as raising an error when a user tries to hit play with no value inside the bar

If anyone could implement this that'd be great!

aaravtanti commented 9 months ago

Hey, I can work on this issue!