kpack18 / kpack18.github.io

CSE 442 Path Algorithm Visualizer
2 stars 0 forks source link

Change Algorithm Button to Stop Button During Execution #51

Closed kpack18 closed 5 years ago

kpack18 commented 5 years ago

The algorithm button will change to a red stop button so when it is clicked again it'll stop the running of the current algorithm and change the grid back to it's pre ran state

kpack18 commented 5 years ago

Test: GUI

1.) Hit the algorithm button 2.) Notice the algorithm button turn to a red stop button 3.) When the algorithm finishes, hit the red stop button to return the grid to its pre ran state and the stop button should turn back to a blue algorithm one. 4.) Repeat steps two and three but press the red stop button while the algorithm is still in progress to interrupt it. Should still return to the same state