@@ -42,7 +42,7 @@ public String tracks() {
4242}
4343
4444public class HorseRace {
45- static final int FINISH_LINE = 75 ;
45+ static final int FINISH_LINE = 60 ;
4646 private List <Horse > horses = new ArrayList <>();
4747 private ExecutorService exec =
4848 Executors .newCachedThreadPool ();
@@ -90,7 +90,7 @@ public static void main(String[] args) {
9090}
9191/* Output: (First and Last 18 Lines)
9292===========================================================
93- ================
93+ =
94940
9595**1
96962
@@ -99,47 +99,38 @@ public static void main(String[] args) {
9999*5
100100**6
101101===========================================================
102- ================
102+ =
103103**0
104104***1
105- ** 2
106- ** 3
107- ***4
108- *5
105+ *2
106+ *3
107+ **** 4
108+ ** 5
109109****6
110110===========================================================
111- ================
111+ =
112112**0
113113...________...________...________...________...
114- ***********************************************************
115- *******6
114+ **********************************************6
116115===========================================================
117- ================
118- ***********************************************************
119- **********0
120- ***********************************************************
121- **********1
122- ***********************************************************
123- ***********2
116+ =
117+ **************************************************0
118+ *************************************************1
119+ *********************************************2
124120***********************************************************
125- ***************3
126- ********************************************************4
127- *********************************************************5
128- ***********************************************************
129- *******6
121+ 3
122+ *****************************************************4
123+ *****************************************************5
124+ ***********************************************6
130125===========================================================
131- ================
132- ***********************************************************
133- ***********0
134- ***********************************************************
135- **********1
126+ =
127+ ****************************************************0
128+ *************************************************1
129+ ***********************************************2
136130***********************************************************
137- ************2
138- ***********************************************************
139- *****************3
140- *********************************************************4
141- **********************************************************5
142- ***********************************************************
143- *******6
131+ *3
132+ *******************************************************4
133+ *******************************************************5
134+ ***********************************************6
144135Horse 3 won!
145136*/
0 commit comments