jkc140 / matchMakingSchedule

This program is going to create a schedule for a softball team
1 stars 2 forks source link

make randomPark more efficient as it takes to long for it to assign parks #54

Closed jkc140 closed 4 years ago

jkc140 commented 4 years ago

use sorting algorithm on array that sorts an array of team if a team has a park it location would be a one if no team it's location would be 0 and based on that it would only assign values to those that have 0

jkc140 commented 4 years ago

does not really have to be done as it does work fairly quickly now, the problem was probably from a different area or the multiple print statements that it has to show which makes it look long, but the actual thing was pretty fast. Other facts could have affected it like other parts of the code not working properly and taking more time than needed