Commit Graph

8 Commits

Author SHA1 Message Date
Haoming Yin b0cd7c8c08 Reformatted doctring and import statements 2017-03-08 14:45:06 +13:00
Michael Rausch ab1445f1c2 Race events now display the boats heading and direction
- The boats velocity is being read from the config file
- The event text is now being printed when the leg starts #fix

Tags: #story[7] #implement
2017-03-08 12:31:31 +13:00
Haoming Yin 78dea7daac Added function to generate events for race
- added generateEvents() for creating event into a priority queue
- added iterateEvents() to pull out events when time passing
- changed default velocity to 70 just for testing. Pls change it back after testing

#story[5] #implement
2017-03-07 21:30:48 +13:00
Haoming Yin a3c1630e2e Updated boat class constructor
- add a new constructor to accept boat velocity

#story[6]
2017-03-07 20:28:45 +13:00
Haoming Yin 5c362245a4 Added velocity related methods into Boat class.
- added setVelocity() and getVelocity()

#story[6]
2017-03-07 19:34:37 +13:00
Michael Rausch 5492ace1a3 Display the boats competing in the race
- Moved displayStartingBoats() and displayFinishingOrder() into the Race class
- Display the competing boats when the application starts

- #implement
2017-03-04 19:13:01 +13:00
Michael Rausch 33994bd3e4 Implemented 'Race' class
- Boats can be added to a race
- calling getFinishedBoats() will return a list of boats in the order that they finished
2017-03-03 18:06:51 +13:00
Michael Rausch 527afdb4a9 Created boat class & tests 2017-03-03 16:22:31 +13:00