The assignment was a simplified version of Uber. There's the rider, the driver, the dispatcher, destination, location etc. we were to use (x,y) coordinates in the first quadrant to determine the location of every driver and rider in the application. Simply put, the rider would request a driver, give a location, and be driven there. If there was no driver, available, he/she would be put on the waiting list. For the driver, the closest driver would be alerted to the nearest rider requesting a pickup and drive him/her to the location of their desire. If there are no riders available, they will be put up as available drivers for the next rider.
Most classes were simply filling in of the __init__ method along with other standard methods as well. The hardest and only class that I failed to finish was the simulation class. Every other class were simple fill ins for the initializes and other basic methods. The simulation class was the one that ran everything. importing each and every class into it, creating new instances of them and running them side by side. Coding it wouldn't have been so hard if I had more time, but I failed to manage my time properly and it came around and stabbed me in the back. I guess the most important lesson here is to start on my projects earlier next time.
No comments:
Post a Comment