diff --git a/answer.txt b/answer.txt index 87c85af..c672c65 100644 --- a/answer.txt +++ b/answer.txt @@ -1 +1 @@ -270 200 +270 100 diff --git a/lastActions.txt b/lastActions.txt index 39cd64d..ac74250 100644 --- a/lastActions.txt +++ b/lastActions.txt @@ -1,8 +1,68 @@ --0.000000 -0.000000 --0.000000 -0.000000 -0.000000 -0.000000 --0.000000 -0.000000 --0.000000 -0.000000 -0.000000 -0.000000 --0.000000 -0.000000 --0.000000 -0.000000 +-4.520035 -153.010954 +21.769531 -238.471209 +-19.987625 -241.204125 +-19.500799 -168.039659 +14.728318 -231.892620 +-1.146169 -211.802657 +160.346794 -12.942202 +14.734663 -229.843788 +183.187726 -20.067243 +191.008872 -6.736352 +170.348954 0.561499 +14.343889 -247.122293 +20.500323 190.947536 +203.536940 20.430462 +-16.283639 158.826220 +238.344449 12.606080 +177.328188 4.682923 +186.150359 3.312978 +156.149007 -14.652285 +-0.279201 226.257003 +155.454736 7.969019 +-15.445195 -203.505108 +154.883574 -19.965314 +2.886820 249.026500 +193.744106 9.469789 +224.583212 11.928862 +158.436164 -17.376616 +-16.274097 -246.655139 +201.930360 18.198730 +211.031319 13.971414 +167.641503 2.279956 +240.821867 -1.488584 +15.075325 169.095356 +-7.630298 196.102117 +-16.364244 182.033073 +235.854636 -0.618213 +-3.898845 151.466209 +11.772678 255.408435 +14.850871 172.844069 +-18.121169 196.343427 +-159.980078 -16.452435 +-1.103776 223.906609 +-164.136493 2.665638 +-188.419881 11.708277 +-168.416232 3.726386 +-246.001750 26.159777 +-162.864443 -16.413678 +-185.432804 -17.595811 +10.500652 172.253365 +-246.953352 -25.972959 +2.389557 169.349638 +11.802635 177.146925 +-150.628957 1.655484 +-21.620570 212.484655 +-174.943953 17.815758 +10.246061 250.882924 +-159.806539 11.576918 +-230.847475 -27.358011 +-156.905847 -16.074234 +-232.901653 13.792754 +-13.141665 -171.881205 +17.978969 -168.541785 +10.998418 -163.890031 +-226.053584 27.174607 +19.537432 -182.302590 +0.707694 -182.975442 +-25.737269 -245.385320 +-22.985682 -253.425572 diff --git a/output.txt b/output.txt index 601df98..5069f33 100644 --- a/output.txt +++ b/output.txt @@ -1,8 +1,8 @@ 4 -0 (0 1) (79.84 55.26) -1 (0 1) (63.60 77.08) -2 (0 1) (36.40 77.08) -3 (0 1) (20.16 55.26) +0 (1 2) (77.50 55.88) +1 (1 2) (54.26 37.50) +2 (1 2) (33.12 59.00) +3 (1 3) (74.02 24.62) 3 5 9 diff --git a/src/main.c b/src/main.c index b4bb957..d7d7cf5 100644 --- a/src/main.c +++ b/src/main.c @@ -82,11 +82,11 @@ void cameraActions(level* lvl, bool* halt, int* cx, int* cy, int* dezoom, int* s double playerSpeedModifier(int nPl) { // gives players a speed boost/penalty depending on their position - // -12% if in the lead, and +12% if last + // -20% if in the lead, and +20% if last if(maxRemD-minRemD >= 0.0001) { double theta = (remainingD[nPl]-minRemD)/(maxRemD-minRemD); //printf("%lf\n", theta); - return (1.0 + (24.0*theta-12.0)/100.0); + return (1.0 + (40.0*theta-20.0)/100.0); } else { return 1.0; }