mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Added a class for the marker, and added documentation
- Added documentation for the Race class - Added a class for the Marker instead of just storing the name of the marker in a string Tags: #docs #implement #story[4]
This commit is contained in:
@@ -27,6 +27,12 @@ public class App
|
||||
race.addBoat(new Boat(boatNames.get(i)));
|
||||
}
|
||||
|
||||
race.addLeg(new Leg(035, 100, "Start"));
|
||||
race.addLeg(new Leg(010, 300, "Marker 1"));
|
||||
race.addLeg(new Leg(350, 400, "Leeward Gate"));
|
||||
race.addLeg(new Leg(010, 400, "Windward Gate"));
|
||||
race.addLeg(new Leg(010, 400, "Leeward Gate"));
|
||||
|
||||
return race;
|
||||
}
|
||||
|
||||
@@ -43,11 +49,11 @@ public class App
|
||||
}
|
||||
|
||||
if (race != null){
|
||||
race.displayStartingBoats();
|
||||
|
||||
System.out.println("");
|
||||
race.startRace();
|
||||
|
||||
race.displayFinishingOrder();
|
||||
|
||||
|
||||
}
|
||||
else{
|
||||
System.out.println("e");
|
||||
|
||||
Reference in New Issue
Block a user