Implemented 'Race' class

- Boats can be added to a race
- calling getFinishedBoats() will return a list of boats in the order that they finished
This commit is contained in:
Michael Rausch
2017-03-03 18:06:51 +13:00
parent 45eec5a288
commit 33994bd3e4
2 changed files with 38 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ public class Boat
{
// The name of the team, this is also the name of the boat
private String teamName = null;
private boolean finishedRace = false;
public Boat(String teamName) {
this.teamName = teamName;