diff --git a/answer.txt b/answer.txt index c5afa23..6f97bd1 100644 --- a/answer.txt +++ b/answer.txt @@ -1 +1 @@ -15 60 \ No newline at end of file +353 94 \ No newline at end of file diff --git a/bots/follow.cmi b/bots/follow.cmi index 017f167..64a10f3 100644 Binary files a/bots/follow.cmi and b/bots/follow.cmi differ diff --git a/bots/follow.cmx b/bots/follow.cmx index 7a576a3..ed0e07b 100644 Binary files a/bots/follow.cmx and b/bots/follow.cmx differ diff --git a/bots/follow.ml b/bots/follow.ml index f058b4d..5e49978 100644 --- a/bots/follow.ml +++ b/bots/follow.ml @@ -75,6 +75,7 @@ let metai = ref 0 in let roomSize = read_int meta metai in (* integer (meters) *) let maximumSpeed = read_int meta metai in (* integer (meters/seconds) *) let playerRadius = read_int meta metai in (* integer *) +let areBarriers = read_int meta metai in (* 0/1 *) let friction = read_float meta metai in (* float (between 0.0 and 1.0) *) let restitutionFactor = read_float meta metai in (* float (between 0.0 and 1.0) *) let trackDistance = read_float meta metai in (* diff --git a/bots/follow.o b/bots/follow.o index b38e1bb..d78bec6 100644 Binary files a/bots/follow.o and b/bots/follow.o differ diff --git a/bots/follow1 b/bots/follow1 index 5e8f191..e75dc8f 100755 Binary files a/bots/follow1 and b/bots/follow1 differ diff --git a/bots/follow2 b/bots/follow2 index 5e8f191..e75dc8f 100755 Binary files a/bots/follow2 and b/bots/follow2 differ diff --git a/bots/follow3 b/bots/follow3 index 5e8f191..e75dc8f 100755 Binary files a/bots/follow3 and b/bots/follow3 differ diff --git a/bots/follow4 b/bots/follow4 index 5e8f191..e75dc8f 100755 Binary files a/bots/follow4 and b/bots/follow4 differ diff --git a/lastActions.txt b/lastActions.txt index 3b8fc5e..664d100 100644 --- a/lastActions.txt +++ b/lastActions.txt @@ -1,232 +1,788 @@ --164.876636 19.899629 --131.793958 142.637930 --35.313109 202.939788 -31.598090 123.177047 --72.709254 -146.236387 -167.465280 -160.606464 --15.466478 190.742777 --113.615798 114.656903 --137.030419 -30.450931 -73.528832 -119.056420 --22.441415 240.372419 -27.306206 162.745110 -128.978022 -190.339990 --32.328017 96.659938 -171.966882 -120.219159 --177.165811 -42.747950 -133.355650 28.931980 --121.650614 109.756008 --158.618004 88.437235 --184.518541 -163.020850 -30.193845 133.756412 -136.650719 -156.823801 -34.042093 210.930566 --203.624243 -111.244981 -53.561036 186.500620 --154.788353 53.762090 -149.519829 115.961924 --0.546410 185.296582 -128.339963 -23.835604 -191.888500 -137.989675 -158.485594 49.178646 -79.823772 133.410342 -43.509856 141.435608 --162.478660 -106.472242 --195.234761 -29.200025 --133.665895 -16.267565 -99.319570 15.260796 -196.348045 6.568111 -173.042173 -38.252209 --52.740724 -218.691870 -46.028600 122.962056 -51.867701 -147.720968 -72.447883 186.744649 -80.124954 189.646459 --87.094817 127.640372 -117.092358 25.875959 --203.447572 -3.687761 -176.876470 -12.491359 -160.000303 -75.636880 --113.120377 -37.010111 -177.458511 -36.941434 -36.643910 180.906647 --29.114493 148.502977 --58.550805 136.189113 -10.476107 -203.692536 -99.392763 -182.298258 --123.922262 -25.812484 -67.708986 136.736176 -151.615675 115.814645 --63.304437 -203.449472 -39.177306 -138.117487 -33.036223 164.482142 --97.023064 -148.570859 --174.547334 94.748045 -161.666149 35.378155 --32.042213 111.465654 --186.112498 -3.328420 --68.160481 -146.909768 --79.909244 99.252495 --94.187705 -52.868307 -179.235732 -42.175283 -179.443311 46.704399 --50.147668 151.315084 --74.791729 192.098011 --172.738639 6.289572 -56.881383 178.815273 -30.929376 157.136440 --5.160238 -158.972241 -233.529442 106.742601 -209.255010 0.645630 -24.661504 -114.333565 --207.836726 -22.173055 --57.756658 -215.848892 --46.798571 -132.859262 -139.134254 -75.832466 --183.134469 163.389721 --94.529561 -137.885661 --59.247523 132.523873 --112.370963 -5.683564 -121.408439 -129.404117 --140.040462 158.280215 --25.859626 -181.316033 --97.036059 132.042199 -166.494511 -104.706804 --158.519766 -195.240271 -60.175525 95.806721 --150.252442 104.972901 -56.429178 173.910136 --181.083300 54.835290 --145.856729 20.485311 -51.752973 -105.278905 --149.622544 -43.024281 -143.535309 213.914450 --108.491656 -124.748348 -49.658568 -90.534766 --117.067993 132.637241 -152.114332 -144.443519 -249.793417 -68.991815 --136.453687 13.037382 -83.341785 71.310446 --58.710710 252.921140 -195.872638 -114.100544 --192.900725 15.469874 -6.182071 130.846122 --251.299931 51.366640 --210.069968 -15.747961 -176.893730 151.876228 --95.249381 -102.486712 -15.359101 192.296747 --45.591694 266.808291 --146.376425 101.877975 -56.073277 143.911676 --107.635160 -116.766613 -172.732231 -33.546957 --179.860685 175.033756 -93.059084 -45.132589 -15.605335 -170.023508 --73.390211 -111.401032 --101.446883 223.948117 -106.459664 -18.918352 --193.563254 36.405068 --235.494997 38.498427 --230.163625 0.041291 --127.165631 -21.312624 --45.621901 189.267225 -126.480850 169.532029 -115.246764 -131.338987 --44.457073 122.750467 -216.667693 -129.520231 -108.245895 154.259396 -221.132741 11.576041 -114.223203 -56.141271 -229.602891 59.666708 --177.370950 -119.341067 -91.156217 -154.529352 --39.824547 -143.294433 --65.674258 -160.940022 --203.665153 -59.336865 --89.292979 193.934446 -98.908107 -98.459523 -158.295770 68.748970 --53.390834 -168.704926 --152.004524 -167.178374 -122.610769 34.051383 -109.474339 150.681326 --135.655457 138.596429 -15.797554 214.292890 --118.483302 -63.473311 --231.215638 97.253671 --151.328243 -79.824562 -3.098388 171.259667 -94.841262 -114.786068 -134.817518 -171.068071 -69.537313 -180.367643 --225.561887 -78.384990 --110.783481 -76.878757 -141.931161 -160.337536 -200.384232 34.701917 --132.468011 -186.721770 -2.308866 -184.610935 -226.181539 -90.522499 -109.494698 -78.683610 -162.480524 191.429014 -126.511640 -79.825025 --126.415076 168.036147 -179.839455 -49.489592 -158.096728 -17.460192 -81.268221 80.079465 --84.704466 212.941911 --20.892930 -116.493503 -79.229842 217.766200 --32.203277 -101.189233 --244.149247 -44.699792 --156.849364 103.341992 -144.430750 62.478498 -157.338730 -73.760521 --54.540289 198.052385 -58.775681 116.284743 --133.090178 113.116505 -137.104165 -86.307220 --162.652402 156.153891 -172.119108 -118.289943 --169.350223 42.685176 --161.756411 -51.234001 --78.828134 -239.895237 -21.897849 190.928634 -110.756934 -91.561042 -109.215894 -36.721603 --27.426429 -192.311576 -105.731650 63.681074 --130.224095 30.549887 -149.030146 -48.350946 -179.744970 56.181260 -173.146361 -36.692215 --161.608998 -191.212124 -46.405002 -110.601725 --126.494430 -182.844076 -82.565319 -153.900977 --159.803180 20.293362 -90.700865 -136.990084 --153.689848 89.127693 -49.694125 159.942072 --34.742757 -205.970802 --100.398021 -93.644589 -65.927274 244.127943 -142.635188 -112.380019 -95.344345 137.565429 -63.870301 116.862762 --34.130933 209.000317 --163.815603 16.381362 --142.724086 75.330433 -122.840677 116.919247 --94.536550 149.752365 --7.870342 130.029191 --31.054691 -235.845912 -60.969559 -95.327286 --159.216181 -44.547472 --179.029626 78.955844 --148.122749 106.017190 -145.503305 -25.752061 -239.604803 74.792529 -128.906511 38.617973 +180.354480 12.765618 +257.165010 26.027708 +247.745645 -8.031197 +37.618273 -119.115484 +248.904986 -0.287541 +217.507544 14.479988 +182.744908 1.833264 +-141.664268 89.504641 +214.124229 -22.779830 +190.092968 -4.998427 +1.918852 178.677200 +110.123950 149.722678 +179.973667 -9.275140 +254.402316 -32.192328 +19.496455 169.789901 +69.857727 -150.634091 +260.421282 -21.999840 +215.461244 -13.157875 +-165.638413 5.324832 +-199.163907 156.754532 +242.006049 10.199590 +223.024085 -18.956505 +-171.598820 3.405837 +230.665232 100.317591 +258.266422 -29.110303 +231.906241 11.453955 +-175.057598 -6.404146 +196.534004 1.139198 +239.341752 -14.924301 +214.945218 17.523199 +-170.830323 -15.052369 +-183.970113 -79.820914 +261.460134 -12.015643 +229.137318 15.137200 +-164.833183 14.219268 +169.184804 -15.514772 +266.495533 -5.100873 +234.539302 -5.357519 +-164.338061 1.221396 +50.208892 189.448163 +239.766548 -28.874002 +236.079381 -17.789772 +-182.288365 -4.493683 +100.989071 -251.414812 +234.296386 8.157336 +232.071775 -24.754809 +-186.191047 -19.736167 +123.786389 -220.266473 +266.111007 4.331590 +211.014935 9.577416 +-168.671685 17.534360 +-130.422665 98.702868 +237.234095 21.720240 +-13.095779 224.603330 +-169.125278 1.512217 +11.484940 165.329285 +261.866797 13.055321 +17.206514 178.844159 +-185.369546 7.736770 +254.389296 6.908716 +276.703968 31.845721 +-17.542119 201.863678 +-182.426667 0.664141 +-75.454991 -170.645687 +265.222313 12.622475 +-0.435559 172.716421 +-173.374602 -0.447243 +-130.451234 -132.973146 +234.363408 -8.406824 +18.169351 179.627234 +-184.394510 -11.944357 +-133.575124 121.377409 +244.250204 28.683451 +11.742619 188.717858 +-185.331953 0.426509 +-73.693508 142.571868 +258.832496 25.565015 +17.233774 193.737172 +-181.741874 -21.019943 +160.331421 -0.249297 +280.657669 -16.810545 +-20.290551 197.582631 +-177.226027 13.990444 +-117.331133 -177.805145 +246.325105 26.566316 +14.634932 194.434939 +-186.169592 17.484728 +-162.398087 -150.996072 +251.553558 -3.399810 +18.041657 190.271554 +-181.715052 -5.725085 +34.359184 -164.273347 +269.531669 -6.668628 +15.142782 183.603564 +-171.710540 -5.299591 +-204.256842 -31.948514 +235.332761 -30.949991 +-11.352563 189.318921 +-180.110758 18.016498 +-205.712030 -12.503096 +215.518234 -5.802486 +-3.777222 175.913468 +-187.255341 -3.974490 +19.573233 -176.330305 +245.659790 -22.048444 +14.293797 187.162707 +-170.671129 13.257338 +-106.694976 165.622590 +252.254505 9.222070 +-21.570804 184.885083 +-178.739550 20.639450 +-248.001046 -1.545805 +244.700089 13.397574 +23.591879 186.806990 +-174.621254 -4.949303 +-171.851882 -122.103024 +252.088286 4.456075 +-21.615246 190.534087 +-165.380098 7.452287 +-189.977486 -112.969554 +257.361833 8.069215 +-4.761411 196.648014 +-174.742661 18.933993 +-235.590227 66.334266 +255.845516 -19.272629 +-7.011542 192.020240 +-165.600443 13.160036 +-134.255868 195.660097 +245.043698 6.061063 +22.069200 200.325374 +-183.223662 17.592823 +-116.799026 161.424575 +259.875177 17.335698 +-3.854105 182.805171 +-187.695366 -13.964232 +3.397704 233.594715 +255.363248 -29.336455 +13.138800 176.489353 +-167.520570 -8.302926 +-7.425610 -254.701723 +230.145869 -22.526671 +-22.823920 176.824601 +-166.891815 16.220773 +-15.568732 -209.873460 +225.943135 5.947168 +-176.385640 8.222188 +-163.193776 17.089247 +157.270547 -138.083329 +241.196367 -2.164877 +-181.147024 8.146252 +-172.431668 -21.807350 +120.454160 153.424089 +282.028146 -6.187797 +-166.285980 -12.953073 +-201.345502 -19.235830 +1.258382 166.466487 +266.523641 6.660951 +-180.066709 -13.991565 +-194.685993 -20.577039 +141.598374 71.107601 +265.789341 -18.061287 +-170.635197 19.758445 +-201.308198 22.110731 +-43.983977 -214.273029 +269.529602 -22.669054 +-178.806977 4.535229 +-185.934228 2.414697 +20.951915 203.611040 +237.348705 28.729120 +-180.677969 8.082281 +-183.719732 -3.751704 +99.747638 -185.172877 +247.779030 -24.595749 +-170.536753 11.342186 +-181.369394 10.571053 +-13.261965 -172.498873 +226.504085 21.726355 +-180.163710 -7.729182 +-195.773017 11.373907 +194.262620 -24.972511 +245.658918 -19.109532 +-178.734581 3.081091 +-181.683649 -6.874449 +-198.668002 145.358835 +260.477471 2.923970 +-165.032595 11.654462 +-191.112888 -10.127141 +-218.641698 -98.187297 +266.083255 8.763035 +-168.442481 -2.409142 +-176.093264 -10.859308 +-268.709037 -43.388523 +246.250272 -10.039180 +-183.501927 7.846646 +-176.173963 10.024348 +-94.890661 -165.394105 +255.966046 -27.525593 +-164.346351 19.422541 +-175.656504 -19.011559 +136.046379 171.506139 +223.332250 -29.665845 +-179.569936 21.288479 +-181.463451 11.944900 +146.417492 -137.602864 +224.195874 -3.697697 +-176.717545 -16.474443 +-174.934608 1.962454 +253.298652 92.112976 +281.516407 -10.086473 +-180.634751 7.805082 +-170.193210 -15.109759 +-106.446760 -114.820550 +264.245668 -15.615089 +-184.182742 -10.210190 +-200.254289 11.788683 +-183.509578 30.050290 +264.829947 25.974288 +-173.121629 19.856234 +-187.266642 5.814039 +-146.702805 -40.077402 +238.230358 -13.072692 +-163.481359 -16.629587 +-180.868775 -6.000594 +48.757256 157.076717 +244.526142 -18.151844 +-173.071498 2.160205 +-176.032827 -14.245994 +-160.468490 151.523883 +251.139980 12.086269 +-179.688077 12.691158 +-195.627856 -0.456220 +-179.217244 92.375630 +256.160098 -28.116622 +-166.328536 -3.518594 +-177.991168 21.801052 +154.218860 45.472605 +266.451827 19.479762 +-173.245654 9.513318 +-173.056717 -8.671303 +-115.008493 209.506679 +280.376643 -6.730339 +-168.952467 -5.070515 +-193.646547 1.762366 +-180.029989 -76.518902 +254.305748 3.968871 +-163.102036 18.212363 +-178.832987 5.860911 +-197.908639 90.274863 +259.924827 5.412127 +-184.511543 4.678499 +-186.178263 -20.935251 +174.042409 8.333357 +258.449378 -4.215534 +-177.715154 4.847818 +-199.097421 -0.238957 +-217.610517 1.987858 +246.583626 -11.090899 +-177.046683 8.830024 +-187.907942 7.704680 +121.462552 -132.005407 +253.952762 -27.461763 +-169.487775 0.456813 +-186.432911 -0.632647 +207.783822 -112.275272 +276.769043 7.306695 +-173.168630 18.941667 +-206.732262 21.853135 +27.009708 170.816267 +257.397400 15.038973 +-173.962297 -4.380580 +-171.854285 -3.092306 +-122.572067 116.983424 +266.011829 -13.141524 +-165.559582 -6.812157 +-196.637833 -14.258417 +152.887554 137.627332 +262.444120 17.398028 +-170.658940 -11.650109 +-203.182564 -2.200659 +98.025191 92.697287 +275.805461 21.024228 +-173.463118 -9.300124 +-192.438790 15.409118 +207.939215 55.076278 +259.496923 -13.547983 +-187.658912 6.236918 +-190.737227 6.186945 +87.864152 -110.310023 +260.730139 -14.437830 +-181.721151 -3.541377 +-188.017874 -17.036665 +76.688289 120.916718 +272.936973 16.790051 +-186.489082 9.242978 +-199.894430 -6.321558 +-89.943047 -192.272112 +253.934045 24.711985 +-173.122664 -7.808308 +-192.185557 10.934864 +-228.817080 -41.069793 +238.662061 -5.195478 +-184.305862 -8.170933 +-185.219544 4.216895 +-67.376040 150.718775 +261.891804 9.596354 +-183.754708 12.802915 +-189.292116 -3.287950 +72.395799 -145.815405 +248.681690 -14.137510 +-165.298148 -19.928524 +-187.732966 -15.772699 +-55.747276 141.753316 +254.381148 25.822042 +-174.367433 10.002681 +-183.198247 -8.430772 +163.905332 125.788092 +276.738972 27.128892 +-168.937758 3.902662 +-186.151870 12.225034 +128.993070 40.240243 +257.696467 15.865649 +-186.831324 -8.322883 +-194.709582 8.085530 +-85.192620 -126.190460 +276.306707 -14.548382 +-170.108823 17.099509 +-172.183719 -5.975172 +-240.832904 -5.541042 +237.955461 6.698464 +-172.690617 -11.043146 +-195.032662 20.513602 +-143.522462 91.457052 +272.389698 -15.521638 +-165.017020 -4.468300 +-191.004681 11.801257 +-170.528289 -67.006354 +238.369230 11.315427 +-179.951024 -4.502907 +-174.767140 17.344235 +146.911654 -73.665142 +257.636778 -26.116492 +-166.367450 20.085931 +-177.011882 -4.993722 +-190.411627 -33.465919 +238.263659 16.912390 +-185.280195 15.072397 +-187.236902 9.035006 +-112.810163 124.942064 +263.011598 -14.024035 +-177.827673 0.206259 +-185.140259 1.320625 +-43.979094 -204.341358 +251.015384 -17.462033 +-182.219790 -12.846849 +-188.995813 -22.689231 +-146.120760 37.726232 +253.658088 -31.482437 +-171.465171 -5.113297 +-189.853814 -22.523996 +-124.120512 205.612628 +276.402460 -3.033223 +-164.467816 -19.224486 +-199.575985 2.755663 +-183.194255 -55.879163 +235.774792 -8.812639 +-165.067731 -12.389134 +-173.497992 3.366373 +-66.668627 265.755371 +243.732160 23.646305 +-171.300082 12.109484 +-173.731946 20.229265 +204.428912 -123.297453 +246.194320 24.757133 +-177.816754 -1.808454 +-179.556413 -0.632819 +161.987479 20.816062 +264.425826 -17.748234 +-180.649214 -17.461030 +-192.272857 18.319005 +-228.562803 -7.554790 +249.879289 16.007091 +-176.657179 -18.677390 +-175.831280 -8.244696 +-54.835526 -221.099216 +250.207781 19.337563 +-164.238629 -12.836357 +-190.781449 -8.014151 +7.371717 224.125479 +251.025117 6.207477 +-177.287504 -19.450543 +-199.888983 -1.075727 +177.807256 59.103754 +261.001455 29.260858 +-167.285989 -7.309350 +-191.144003 -11.933695 +118.266724 -131.479144 +246.057717 0.000000 +-174.203425 16.486462 +-197.777701 7.257571 +-43.375416 159.931869 +258.344566 16.701224 +-184.711434 14.846472 +-183.417063 -6.662384 +129.453092 -22.668252 +266.065612 5.411642 +-165.826347 -5.037998 +-189.413622 21.216318 +-57.937429 -150.826205 +275.957393 11.876900 +-168.196119 -4.046921 +-190.854939 -0.212314 +-64.153093 -167.594383 +263.483996 17.460917 +-167.262120 -2.250842 +-181.387072 -21.824037 +-178.953049 65.691502 +251.690612 -30.002431 +-163.785221 -16.204136 +-201.788859 -1.366033 +-170.111536 97.334571 +252.547530 4.079706 +-174.957180 -5.593830 +-190.778592 -7.600271 +-213.081140 44.377258 +262.464914 -14.170044 +-167.940080 -14.127056 +-190.361348 -16.063828 +-159.520109 28.679023 +251.682145 13.005898 +-180.797691 -9.178074 +-178.251537 -4.459719 +45.152350 171.853746 +274.457664 -11.445597 +-174.496097 -10.197343 +-176.684399 5.659801 +17.855483 193.523955 +278.956842 9.599424 +-176.526684 -8.042463 +-192.618093 5.531563 +66.218016 161.203219 +247.746657 9.938295 +-173.207259 18.219894 +-175.947828 -18.405405 +-11.699200 168.323092 +248.344402 5.415286 +-169.227483 0.910589 +-195.569828 16.475108 +-41.647434 -208.210123 +270.384759 -25.458926 +-164.886557 -17.617873 +-183.020734 4.683231 +-188.985536 130.615094 +245.804567 7.849266 +-186.431969 2.287346 +-180.390332 9.190226 +63.370555 -179.706060 +249.619123 18.733890 +-170.032255 -17.270723 +-176.040509 -8.273256 +-161.171860 54.628748 +281.275201 11.721996 +-165.729808 21.161768 +-178.949873 5.220543 +-76.039369 -178.838286 +251.552489 25.087040 +-170.041991 3.985527 +-179.289953 -2.932139 +-3.039448 235.082409 +263.569396 -4.171805 +-167.610232 -9.334645 +-195.441122 -10.425908 +71.002220 -207.415384 +251.778568 23.304350 +-177.775869 11.337258 +-193.428470 -20.860474 +68.576171 189.152616 +272.343851 13.382626 +-164.748873 13.818752 +-194.246902 -6.774336 +-70.970967 -191.862339 +263.715160 -6.914504 +-169.030132 -1.006525 +-188.314805 -11.743051 +-74.310587 -183.188506 +255.192669 -17.474132 +-167.725436 -18.299943 +-188.384016 -17.312662 +207.402752 -75.520109 +249.016274 -4.512521 +-175.698596 15.405132 +-187.191160 -13.193436 +-155.346668 -17.013375 +240.498591 5.248355 +-179.141043 15.032949 +-201.212279 13.370793 +-20.247138 223.278448 +265.829945 -5.858564 +-175.751487 8.022588 +-193.821840 -14.363851 +173.289820 131.666578 +252.764230 21.469667 +-182.890503 -4.182771 +-187.603402 0.235603 +-176.578773 4.239769 +262.694234 -7.378682 +-183.780249 -13.163283 +-177.700733 4.038323 +49.250588 -190.516575 +261.567433 3.587778 +-174.660755 12.976228 +-177.126972 9.561800 +-53.983931 151.636060 +244.187475 -15.422749 +-177.013096 2.155669 +-188.254939 17.887372 +-188.795364 79.121732 +253.743604 -32.178968 +-164.921374 -15.503330 +-169.415147 3.277477 +-48.079316 232.212754 +220.039953 14.514682 +-177.020657 -19.726748 +-176.315951 -12.220478 +-154.430885 53.404759 +257.462444 28.884552 +-184.880456 1.078673 +-186.382364 5.240649 +24.812487 242.819420 +249.286139 -14.549762 +-177.159273 5.904458 +-180.300306 -11.928731 +-195.158447 -17.294436 +263.332572 -13.739763 +-173.687287 -19.468266 +-188.827623 -4.325255 +191.941490 -106.512431 +270.138617 -28.381875 +-183.583174 19.042291 +-180.229906 -16.513389 +-152.401878 -89.113756 +226.724489 25.282524 +-166.342642 -8.911510 +-196.138565 -12.809222 +8.661936 -152.032274 +262.252292 -10.090132 +-171.509673 5.493371 +-199.553011 -18.300247 +71.341902 193.277186 +269.802685 0.321059 +-181.039469 -19.263917 +-183.444727 -11.585163 +-245.656088 -34.347414 +261.832323 24.993166 +-173.997231 -14.034810 +-182.663237 14.570526 +-17.800625 -193.929395 +238.132907 -6.621123 +-186.515046 -14.896396 +-177.147297 -0.213329 +207.834235 113.935113 +265.156106 -5.718732 +-164.487340 -11.159603 +-182.706984 -18.405776 +193.748677 -35.546042 +275.924253 -8.641820 +-181.669464 18.764789 +-185.582657 3.343306 +161.379969 118.210869 +247.168273 -24.623369 +-171.700997 -15.539352 +-185.266784 -16.419902 +-245.511524 58.486959 +222.119352 1.025802 +-165.975798 5.461162 +-196.048307 -15.209658 +-37.717939 -187.865274 +261.570800 26.637511 +-168.868922 -4.614395 +-177.053183 -6.806540 +45.029600 185.846615 +262.853555 30.258671 +-172.316672 -19.091082 +-174.505966 22.933688 +98.265583 -129.330971 +266.682225 0.934644 +-174.432954 -19.062751 +-172.512412 0.695168 +168.186381 -122.905422 +263.139173 -24.798242 +-186.173666 6.490197 +-192.412537 -15.564054 +144.863482 82.098953 +269.064127 -5.454711 +-173.045615 15.510746 +-184.810735 0.670981 +101.276387 173.279843 +257.566140 -3.208727 +-187.608176 8.332879 +-175.846656 14.440837 +114.384258 218.700012 +246.950821 -28.134532 +-184.549856 11.560403 +-193.224513 1.874119 +246.934522 33.668670 +240.655656 -20.667925 +-174.932761 -3.891810 +-171.894936 12.950544 +-207.636987 83.684858 +250.531183 17.184105 +-175.700411 10.483276 +-174.351022 14.571784 +-180.436141 70.067639 +240.643888 16.371563 +-180.305712 -18.596477 +-187.589544 5.078514 +-160.983527 158.362201 +238.910745 2.993639 +-167.786181 -10.062006 +-178.377617 -19.446713 +-63.061107 242.550265 +242.979297 -10.414757 +-173.737176 -1.280346 +-200.006565 -5.676251 +-195.193090 -1.595136 +247.764961 -5.134290 +-176.971065 21.414320 +-185.845784 16.379074 +135.168451 -184.400556 +259.797011 11.607048 +-167.183735 -15.993566 +-176.104784 -2.253783 +133.553005 -92.279769 +246.841028 -2.945773 +-174.068054 -6.101361 +-193.740893 10.161271 +148.357876 -176.968957 +246.351705 30.484513 +-164.451029 7.010982 +-190.298508 4.867723 +48.067778 -231.223951 +243.148093 10.597204 +-174.837169 7.336416 +-176.180993 -9.257291 +3.807441 208.035173 +239.106170 -6.693920 +-165.500314 -13.673073 +-192.060475 -8.762300 +-220.824842 -14.073147 +254.907706 -2.578280 +-183.605919 -0.607909 +-179.503816 -11.002432 +106.991128 -175.108235 +275.088854 -29.086450 +-180.340434 -10.541119 +-176.582322 14.965736 +-29.259509 160.008537 +217.786340 -14.126536 +-180.303809 -10.813647 +-168.359383 -13.169048 +-4.304155 -197.366101 +252.981162 26.488475 +-169.310536 16.429371 +-194.991858 -2.010234 +-151.174111 -133.505940 +243.084022 -11.089348 +-175.425629 18.247902 +-176.697240 1.470382 +224.041050 -41.983996 +273.764974 18.410660 +-178.490186 1.690852 +-178.920771 18.384935 +-119.709123 -177.469876 +233.917394 13.081470 +-172.672647 2.059176 +-187.248628 -20.558390 +231.795421 80.488116 +271.752974 7.807891 +-185.721139 21.532632 +-200.943965 4.820566 +44.555613 -173.530416 +261.338844 -4.955304 +-176.331233 8.398682 +-196.129830 -10.060762 +25.980790 181.197276 +259.364933 11.748465 +-172.246651 12.017020 +-177.668040 -1.478943 +-196.905458 -61.123771 +256.161513 0.306550 +-184.004253 11.510342 +-183.697792 22.264273 +-206.832167 126.262907 +261.725500 -17.537449 +-176.890152 18.386296 +-175.599661 0.842397 +192.367841 -180.112496 +278.181731 -3.555321 +-173.519325 17.840809 +-185.831179 -6.893713 +159.468539 -175.004756 +264.997521 -2.275749 +-177.492342 16.781735 +-179.497054 -6.542101 +199.819764 130.079405 +249.548808 -16.876725 +-178.219772 -9.915215 +-179.483698 22.201518 +-159.326195 117.315548 +246.123777 -6.575903 +-164.834036 -5.834310 +-170.795353 22.194001 +-60.158359 164.952476 +250.775743 -17.599357 +-185.149467 -12.991381 +-168.840344 4.752071 +36.103046 216.935403 +263.520967 -23.590207 +-177.061394 -9.141641 +-176.400114 15.333194 +155.635486 -88.048528 +248.016102 -27.303909 +-166.572493 9.159135 +-177.150208 -3.750854 +-167.019406 196.815535 +211.616729 -8.339054 +-169.430118 5.124315 +-199.059520 11.718308 +-143.432332 36.557664 +248.108433 -28.839862 +-180.165856 2.907331 +-191.037683 -20.842483 +96.437357 134.390762 +222.604946 -19.288030 +-178.304826 10.997075 +-183.679180 17.101752 +-209.122327 2.679803 +256.510097 -30.728088 +-163.689464 10.719437 +-174.801177 -13.772537 +-8.365356 211.808500 +232.595871 22.234652 +-173.415256 -18.730193 +-180.208892 12.533260 +219.175194 -84.289568 +248.610793 -3.346997 +-168.449518 16.890100 +-182.186078 3.504988 +-168.972726 80.142325 +250.915954 -7.783872 +-171.811529 -5.282817 +-194.457497 -1.636096 +151.316001 146.603194 +260.736681 -13.441342 +-181.309757 -1.645169 +-188.655975 8.694222 +-103.500638 132.379636 +252.143987 -9.951366 +-162.679251 -19.836864 +-188.558266 -15.848865 +177.025496 -142.127588 +264.645232 15.023636 +-165.131723 -8.208375 +-181.345024 -14.891900 +-242.078717 -37.647021 +260.029787 -14.305090 +-184.961643 -10.592142 +-183.136404 -1.651206 +152.178492 -167.775718 +256.552976 -19.094911 +-168.597952 15.395385 +-179.683663 -10.932337 +-123.894687 -136.609404 +245.051762 -10.978670 +-168.180484 1.603262 +-200.540546 -17.418739 +153.655003 127.965252 +270.695386 12.799561 +-164.521637 4.315344 +-194.332880 -6.320962 +93.009412 191.745118 +265.424071 10.278522 +-169.059639 4.872244 +-178.432114 19.545724 +56.759404 237.999527 +262.028766 -10.414393 +-177.391856 0.000456 +-182.444831 -22.787660 +239.449713 -7.322367 diff --git a/output.txt b/output.txt index 75e026d..cbac440 100644 --- a/output.txt +++ b/output.txt @@ -1,15 +1,17 @@ 4 -0 (1 0) (15.98 83.38) -1 (6 0) (12.66 31.55) -2 (1 0) (22.92 36.40) -3 (3 0) (80.42 49.95) +0 (2 0) (44.74 79.84) +1 (4 2) (29.89 68.20) +2 (4 2) (44.91 24.65) +3 (2 0) (37.59 54.88) 3 -3 10 -.S11111114 -E........0 -2111111115 +5 5 +..S14 +....0 +...35 +.E15. +..... -100 220 5 0.90 0.80 0.20 0.00 0.20 +100 220 5 0 0.80 0.20 0.00 0.20 0.00 -Room Size, Maximum speed, Player Radius, Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width \ No newline at end of file +Room Size, Maximum speed, Player Radius, Barriers (0/1) Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width \ No newline at end of file diff --git a/src/structure.c b/src/structure.c index 1420dee..1c16845 100644 --- a/src/structure.c +++ b/src/structure.c @@ -71,8 +71,8 @@ void write_output(char* stream, level* lvl, int nPl) { fprintf(ptr, "\n"); } fprintf(ptr, "\n"); - fprintf(ptr, "%d %d %d %.2lf %.2lf %.2lf %.2lf %.2lf\n", ROOM_SIZE, MAX_SPEED, PLAYER_R, FRICTION, RESTITUTION_WALL, DIST_EDGE, B, STR2_W); - fprintf(ptr, "\nRoom Size, Maximum speed, Player Radius, Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width"); + fprintf(ptr, "%d %d %d %d %.2lf %.2lf %.2lf %.2lf %.2lf\n", ROOM_SIZE, MAX_SPEED, PLAYER_R, BARRIERS, RESTITUTION_WALL, DIST_EDGE, B, STR2_W); + fprintf(ptr, "\nRoom Size, Maximum speed, Player Radius, Barriers (0/1) Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width"); fclose(ptr); }