@@ -0,0 +1,745 @@
+/*%0A * Code used in the %22Software Engineering%22 course.%0A *%0A * Copyright 2017 by Claudio Cusano (claudio.cusano@unipv.it)%0A * Dept of Electrical, Computer and Biomedical Engineering,%0A * University of Pavia.%0A */%0Apackage goldrush;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A *%0A * @author cl427169%0A */%0Apublic class Antonino extends GoldDigger%7B%0Aint r=0;%0Apublic int chooseDiggingSite(int%5B%5D distances)%7B%0Areturn r;%0A%0A%7D%0Apublic void dailyOutcome(int revenue, int%5B%5D distances, int%5B%5D diggers) %7B %0A%0A for(int i=1; i%3Cdistances.length; i++)%7B%0A    if(distances%5Br%5D%3Edistances%5Bi%5D)%0A    r=i;%0A   %7D%0A for(int j=1; j%3Cdiggers.length; j++)%7B%0A    if(diggers%5Br%5D%3Ediggers%5Bj%5D)%0A    r=j;%0A   %7D%0A  %7D%0A%7D%0A%0A%0A%0A%0A/*%0Aint r=0;%0Afor(int i=1; i%3Cdistances.length; i++)%0Aif(distances%5Br%5D%3Edistances%5Bi%5D)%0Ar=i;%0Areturn r;%0A*/

modifica diggers