From 28625140baa20d541112cd5126e5478cbcb3560f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Babi=C4=8D?= Date: Sun, 26 Apr 2015 22:24:42 +0200 Subject: [PATCH] visual battles working --- data/model.data | 168 +++++++ data/output.data | 100 +++++ data/results.last.data | 4 + data/settings.last.battle | 2 +- data/testing.scale | 100 +++++ data/training.scale | 900 ++++++++++++++++++++++++++++++++++++++ robocode-svm | 52 ++- 7 files changed, 1305 insertions(+), 21 deletions(-) create mode 100644 data/model.data create mode 100644 data/output.data create mode 100644 data/results.last.data create mode 100644 data/testing.scale create mode 100644 data/training.scale diff --git a/data/model.data b/data/model.data new file mode 100644 index 0000000..c1c5841 --- /dev/null +++ b/data/model.data @@ -0,0 +1,168 @@ +svm_type c_svc +kernel_type rbf +gamma 2 +nr_class 2 +total_sv 159 +rho 1.19504 +label 1 2 +nr_sv 79 80 +SV +10 1:0.977956 2:0.01002 3:0.631285 +10 1:0.382766 2:0.639279 3:0.148045 +10 1:0.220441 2:0.521042 3:0.824022 +10 1:0.38477 2:0.777555 3:0.371508 +10 1:0.699399 2:0.0981964 3:0.821229 +10 1:0.973948 2:0.406814 3:0.0642458 +10 1:0.45491 2:0.723447 3:0.75419 +10 1:0.0240481 2:0.517034 3:0.0195531 +10 1:0.370741 2:0.901804 3:0.73743 +10 1:0.719439 2:0.282565 3:0.396648 +10 1:0.0521042 2:0.617234 3:0.994413 +10 1:0.513026 2:0.47495 3:0.614525 +10 1:0.218437 3:0.24581 +10 1:0.174349 2:0.523046 3:0.960894 +4.326541381368893 1:0.0541082 2:0.569138 3:0.0782123 +10 1:0.276553 2:0.551102 3:0.0670391 +10 1:0.406814 2:0.895792 3:0.379888 +3.280601907720139 1:0.96994 2:0.01002 3:0.421788 +10 1:0.00601202 2:0.561122 3:0.0307263 +10 1:0.901804 2:0.0661323 3:0.382682 +10 1:0.360721 2:0.665331 3:0.49162 +10 1:0.402806 2:0.661323 3:0.377095 +10 1:0.188377 2:0.46493 3:0.301676 +10 1:0.895792 2:0.00400802 3:0.949721 +10 1:0.887776 2:0.0300601 3:0.667598 +10 1:0.937876 2:0.114228 3:0.569832 +10 1:0.430862 2:0.661323 3:0.536313 +3.562985908700211 1:0.396794 2:0.741483 3:0.946927 +10 1:0.450902 2:0.819639 3:0.0446927 +10 1:0.00400802 2:0.306613 3:0.51676 +10 1:0.260521 2:0.529058 3:0.569832 +10 1:0.895792 2:0.0761523 3:0.857542 +10 1:0.458918 2:0.462926 3:0.910615 +10 1:0.438878 2:0.617234 3:0.617318 +10 1:0.438878 2:0.701403 3:0.379888 +10 1:0.352705 2:0.941884 3:0.27933 +10 1:0.316633 2:0.573146 3:0.167598 +10 1:0.272545 2:0.583166 3:0.0670391 +10 1:0.192385 2:0.460922 3:0.0223464 +10 1:0.458918 2:0.95992 3:0.111732 +10 1:0.635271 2:0.0440882 3:0.603352 +10 1:0.442886 2:0.651303 3:0.916201 +10 1:0.45491 2:0.803607 3:0.882682 +10 1:0.925852 2:0.102204 3:0.0307263 +10 1:0.352705 2:0.643287 3:0.743017 +10 1:0.945892 2:0.00400802 3:0.0977654 +10 1:0.390782 2:0.863727 3:0.522346 +10 1:0.38477 2:0.737475 3:0.438547 +10 1:0.426854 2:0.8998 3:0.175978 +10 1:0.721443 2:0.0581162 3:0.407821 +10 1:0.294589 2:0.571142 3:0.318436 +10 1:0.396794 2:0.753507 3:0.650838 +10 1:0.192385 2:0.547094 3:0.622905 +10 1:0.971944 2:0.0861723 3:0.142458 +3.791575720973319 1:0.158317 2:0.603206 3:0.972067 +10 1:0.87976 2:0.0561122 3:0.768156 +10 1:0.184369 2:0.529058 3:0.849162 +10 1:0.637275 2:0.302605 3:0.798883 +10 1:0.298597 2:0.581162 3:0.195531 +10 1:0.539078 2:0.438878 3:0.377095 +10 1:0.43487 2:0.635271 3:0.0502793 +10 1:0.446894 2:0.501002 3:0.743017 +10 1:0.40481 2:0.661323 3:0.111732 +10 1:0.276553 2:0.51503 3:0.122905 +10 1:0.45491 2:0.653307 3:0.72905 +2.317734268317795 1:0.0260521 2:0.637275 3:0.910615 +10 1:0.300601 2:0.577154 3:0.583799 +10 1:0.921844 2:0.00400802 3:0.217877 +10 1:0.44489 2:0.93988 3:0.0865922 +10 1:0.184369 2:0.511022 3:0.675978 +10 1:0.326653 2:0.587174 3:0.206704 +10 1:0.224449 2:0.52505 3:0.902235 +3.239508004138007 1:0.252505 2:0.599198 3:0.321229 +10 1:1 2:0.214429 3:0.0558659 +10 1:0.0681363 2:0.569138 3:0.48324 +10 1:0.376754 2:0.623246 3:0.407821 +10 1:0.388778 2:0.937876 3:0.932961 +10 1:0.282565 2:0.591182 3:0.145251 +10 2:0.617234 3:0.715084 +-10 1:0.104208 2:0.511022 3:0.980447 +-8.530932932056052 1:0.973948 2:0.130261 3:0.960894 +-10 1:0.903808 2:0.0721443 3:0.0865922 +-10 1:0.364729 2:0.492986 3:0.287709 +-10 1:0.50501 2:0.597194 3:0.111732 +-10 1:0.519038 2:0.855711 3:0.209497 +-10 1:0.360721 2:0.557114 3:0.0949721 +-10 1:0.0340681 2:0.509018 3:0.977654 +-10 1:0.937876 2:0.136273 3:0.444134 +-10 1:0.188377 2:0.440882 3:0.195531 +-10 1:0.430862 2:0.52505 3:0.50838 +-10 1:0.320641 2:0.476954 3:0.413408 +-10 1:0.012024 2:0.753507 3:0.312849 +-9.829315964603598 1:0.799599 2:0.0320641 3:0.0251397 +-10 1:0.296593 2:0.513026 3:0.653631 +-10 1:0.981964 2:0.156313 3:0.405028 +-10 1:0.509018 2:0.597194 3:0.902235 +-10 1:0.867735 2:0.0561122 3:0.944134 +-10 1:0.410822 2:0.501002 3:0.391061 +-10 1:0.11022 2:0.472946 3:0.0363128 +-10 1:0.993988 2:0.280561 3:0.0418994 +-10 1:0.0220441 2:0.501002 3:0.709497 +-10 1:0.965932 2:0.194389 3:0.0865922 +-10 1:0.0561122 2:0.49499 3:0.346369 +-10 1:0.476954 2:0.60521 3:0.628492 +-10 1:0.350701 2:0.563126 3:0.290503 +-10 1:0.274549 2:0.977956 3:0.51676 +-10 1:0.348697 2:0.991984 3:0.698324 +-10 1:0.458918 2:0.563126 3:0.899441 +-10 1:0.448898 2:0.561122 3:0.0949721 +-10 1:0.402806 2:0.977956 3:0.72905 +-10 1:0.298597 2:0.553106 3:0.963687 +-10 1:0.801603 2:0.0340681 3:0.472067 +-10 1:0.811623 2:0.0841683 3:0.636872 +-4.776749931808935 1:0.432866 2:0.997996 3:0.371508 +-10 1:0.468938 2:0.937876 3:0.0195531 +-10 1:0.845691 2:0.0961924 3:0.541899 +-10 1:0.490982 2:0.549098 3:0.73743 +-10 1:0.348697 2:0.577154 3:0.189944 +-3.538849658332015 1:0.01002 2:0.468938 3:0.382682 +-10 1:0.380762 2:0.973948 3:0.136872 +-10 1:0.160321 2:0.553106 3:0.673184 +-10 1:0.511022 2:0.835671 3:0.156425 +-10 1:0.811623 2:0.0561122 3:0.0837989 +-10 1:0.274549 2:0.460922 3:0.0251397 +-10 1:0.380762 2:0.971944 3:0.399441 +-10 1:0.480962 2:0.759519 3:0.664804 +-10 1:0.260521 2:0.436874 3:0.0586592 +-10 1:0.0581162 2:0.501002 3:0.723464 +-10 1:0.498998 2:0.819639 3:0.497207 +-10 1:0.228457 2:0.472946 3:0.634078 +-1.665292294646212 1:0.527054 2:0.695391 3:0.26257 +-10 1:0.46493 2:0.767535 3:0.918994 +-10 1:0.861723 2:0.0841683 3:0.393855 +-10 1:0.877756 2:0.0300601 3:0.76257 +-10 1:0.130261 2:0.591182 3:0.698324 +-10 1:0.41483 2:0.519038 3:0.575419 +-10 1:0.0861723 2:0.551102 3:0.0418994 +-10 1:0.396794 2:0.603206 3:0.488827 +-10 1:0.388778 2:0.629259 3:0.23743 +-10 1:0.50501 2:0.823647 3:0.949721 +-10 1:0.0741483 2:0.446894 3:0.0586592 +-1.888677446717209 1:0.184369 2:0.420842 3:0.27095 +-8.749684193158298 1:0.677355 2:0.0400802 3:0.667598 +-10 1:0.533066 2:0.827655 3:0.0586592 +-10 1:0.144289 2:0.519038 3:0.687151 +-10 1:0.472946 2:0.859719 3:0.248603 +-10 1:0.426854 2:0.547094 3:0.511173 +-1.039768012306339 1:0.543086 2:0.687375 3:0.748603 +-0.4996767575897043 1:0.961924 2:0.202405 3:0.50838 +-10 1:0.306613 2:0.51503 3:0.673184 +-10 1:0.801603 2:0.0180361 3:0.642458 +-10 1:0.837675 2:0.0801603 3:0.77095 +-10 1:0.0340681 2:0.579158 3:0.0642458 +-10 1:0.478958 2:0.865731 3:0.385475 +-10 1:0.182365 2:0.45491 3:0.863128 +-10 1:0.380762 2:0.496994 3:0.416201 +-10 1:0.388778 2:0.432866 3:0.986034 +-10 1:0.517034 2:0.771543 3:0.712291 +-10 1:0.376754 2:0.521042 3:0.282123 diff --git a/data/output.data b/data/output.data new file mode 100644 index 0000000..ff0b2fb --- /dev/null +++ b/data/output.data @@ -0,0 +1,100 @@ +2 +1 +2 +2 +2 +1 +1 +2 +2 +2 +2 +2 +1 +2 +1 +2 +2 +1 +1 +2 +2 +1 +1 +2 +1 +1 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +1 +1 +1 +2 +2 +2 +2 +1 +2 +1 +2 +2 +2 +2 +2 +2 +2 +1 +2 +1 +2 +2 +2 +2 +2 +2 +2 +2 +2 +1 +1 +2 +2 +2 +1 +1 +1 +2 +2 +2 +2 +1 +2 +2 +2 +2 +2 +2 +2 +2 +1 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 diff --git a/data/results.last.data b/data/results.last.data new file mode 100644 index 0000000..2d5482e --- /dev/null +++ b/data/results.last.data @@ -0,0 +1,4 @@ +Results for 1 round +Robot Name Total Score Survival Surv Bonus Bullet Dmg Bullet Bonus Ram Dmg * 2 Ram Bonus 1sts 2nds 3rds +1st: sample.Corners 178 (100%) 50 10 98 20 0 0 1 0 0 +2nd: sample.Fire 0 (0%) 0 0 0 0 0 0 0 1 0 diff --git a/data/settings.last.battle b/data/settings.last.battle index 283deb0..96ad95b 100644 --- a/data/settings.last.battle +++ b/data/settings.last.battle @@ -5,4 +5,4 @@ robocode.battle.numRounds=1 robocode.battle.gunCoolingRate=0.07 robocode.battle.rules.inactivityTime=450 robocode.battle.selectedRobots=sample.Corners,sample.Fire -robocode.battle.initialPositions=(250,250,0),(70,x,0) +robocode.battle.initialPositions=(250,250,0),(144,380,0) diff --git a/data/testing.scale b/data/testing.scale new file mode 100644 index 0000000..c9f6d6f --- /dev/null +++ b/data/testing.scale @@ -0,0 +1,100 @@ +2 1:0.112224 2:0.222445 3:0.807263 +1 1:0.326653 2:0.587174 3:0.206704 +2 1:0.697395 2:0.140281 3:0.0307263 +2 1:0.645291 2:0.478958 3:0.952514 +2 1:0.563126 2:0.0220441 3:0.354749 +1 1:0.224449 2:0.52505 3:0.902235 +1 1:0.252505 2:0.599198 3:0.321229 +2 1:0.422846 2:0.0601202 3:0.558659 +2 1:0.735471 2:0.741483 3:0.634078 +2 1:0.677355 2:0.160321 3:0.0307263 +2 1:0.973948 2:0.701403 3:0.0782123 +1 1:1 2:0.214429 3:0.0558659 +1 1:0.0681363 2:0.569138 3:0.48324 +2 1:0.837675 2:0.0801603 3:0.77095 +1 1:0.288577 2:0.787575 3:0.393855 +2 1:0.789579 2:0.388778 3:0.134078 +2 1:0.336673 2:0.12024 3:0.603352 +1 1:0.0761523 2:0.907816 3:0.251397 +1 1:0.104208 2:0.767535 3:0.184358 +2 1:0.128257 2:0.258517 3:0.363128 +2 1:0.541082 2:0.0541082 3:0.860335 +1 1:0.0801603 2:0.853707 3:0.335196 +1 1:0.00801603 2:0.941884 3:0.25419 +2 1:0.911824 2:0.911824 3:0.977654 +2 1:0.0340681 2:0.579158 3:0.0642458 +1 1:0.314629 2:0.845691 3:0.765363 +2 1:0.158317 2:0.422846 3:0.846369 +2 1:0.478958 2:0.228457 3:0.768156 +2 1:0.863727 2:0.835671 3:0.446927 +2 1:0.695391 2:0.817635 3:0.427374 +2 1:0.478958 2:0.865731 3:0.385475 +2 1:0.182365 2:0.45491 3:0.863128 +2 1:0.54509 2:0.196393 3:0.583799 +2 1:0.777555 2:0.50501 3:0.851955 +2 1:0.777555 2:0.248497 3:0.198324 +2 1:0.883768 2:0.438878 3:0.449721 +2 1:0.380762 2:0.496994 3:0.416201 +2 1:0.621242 2:0.226453 3:0.765363 +2 1:0.591182 2:0.0240481 3:0.26257 +1 1:0.0981964 2:0.897796 3:0.170391 +1 1:0.214429 2:0.619238 3:0.843575 +1 1:0.250501 2:0.775551 3:0.0726257 +2 1:0.0741483 2:0.274549 3:0.0167598 +2 1:0.883768 2:0.561122 3:0.717877 +2 1:0.531062 2:0.284569 3:0.868715 +2 1:0.440882 2:0.122244 3:0.73743 +1 1:0.376754 2:0.623246 3:0.407821 +2 1:0.769539 2:0.88978 3:0.854749 +1 1:0.340681 2:0.829659 3:0.290503 +2 1:0.388778 2:0.432866 3:0.986034 +2 1:0.184369 2:0.174349 3:0.00837989 +2 1:0.366733 2:0.358717 3:0.698324 +2 1:0.775551 2:0.356713 3:0.575419 +2 1:0.753507 2:0.709419 3:0.628492 +2 1:0.452906 2:0.408818 3:0.446927 +2 1:0.589178 2:0.973948 3:0.0642458 +1 1:0.388778 2:0.937876 3:0.932961 +2 1:0.707415 2:0.292585 3:0.463687 +1 1:0.136273 2:0.807615 3:0.72905 +2 1:0.897796 2:0.498998 3:0.047486 +2 1:0.537074 2:0.893788 3:0.815642 +2 1:0.735471 2:0.789579 3:0.480447 +2 1:0.785571 2:0.759519 3:0.793296 +2 1:0.693387 2:0.252505 3:0.120112 +2 1:0.597194 2:0.322645 3:0.108939 +2 1:0.466934 2:0.0681363 3:0.687151 +2 1:0.921844 2:0.388778 3:0.513966 +2 1:0.933868 2:0.619238 3:0.480447 +1 1:0.248497 2:0.837675 3:0.265363 +1 1:0.282565 2:0.591182 3:0.145251 +2 1:0.537074 2:0.194389 3:0.231844 +2 1:0.148297 2:0.254509 3:0.994413 +2 1:0.392786 2:0.374749 3:0.0195531 +1 2:0.617234 3:0.715084 +1 1:0.290581 2:0.933868 3:0.0614525 +1 1:0.0941884 2:0.983968 3:0.469274 +2 1:0.114228 2:0.442886 3:0.709497 +2 1:0.529058 2:0.90982 3:0.625698 +2 1:0.0521042 2:0.352705 3:0.893855 +2 1:0.517034 2:0.771543 3:0.712291 +1 1:0.142285 2:0.809619 3:0.759777 +2 1:0.987976 2:0.533066 3:0.555866 +2 1:0.95992 2:0.338677 3:0.187151 +2 1:0.695391 2:0.416834 3:0.100559 +2 1:0.376754 2:0.521042 3:0.282123 +2 1:0.659319 2:0.511022 3:0.798883 +2 1:0.308617 2:0.0501002 3:0.76257 +2 1:0.895792 2:0.230461 3:0.530726 +2 1:0.402806 2:0.210421 3:0.455307 +1 1:0.142285 2:0.901804 3:0.784916 +1 1:0.192385 2:0.511022 3:0.670391 +2 1:0.607214 2:0.913828 3:0.801676 +2 1:0.807615 2:0.893788 3:0.810056 +2 1:0.801603 2:0.456914 3:0.748603 +2 1:0.967936 2:0.557114 3:0.935754 +2 1:0.839679 2:0.799599 3:0.751397 +2 1:0.503006 2:0.406814 3:0.326816 +2 1:0.647295 2:0.244489 3:0.0307263 +2 1:0.52505 2:0.98998 3:0.469274 +2 1:0.0501002 2:0.0160321 3:0.73 \ No newline at end of file diff --git a/data/training.scale b/data/training.scale new file mode 100644 index 0000000..2aa0a45 --- /dev/null +++ b/data/training.scale @@ -0,0 +1,900 @@ +1 1:0.977956 2:0.01002 3:0.631285 +2 1:0.707415 2:0.511022 3:0.27095 +2 1:0.945892 2:0.507014 3:0.0893855 +2 1:0.769539 2:0.380762 3:0.486034 +2 1:0.897796 2:0.569138 3:0.410615 +2 1:0.653307 2:0.547094 3:0.298883 +1 1:0.382766 2:0.639279 3:0.148045 +2 1:0.104208 2:0.511022 3:0.980447 +2 1:0.715431 2:0.92986 3:0.125698 +2 1:0.973948 2:0.130261 3:0.960894 +1 1:0.214429 2:0.723447 3:0.5 +2 1:0.569138 2:0.747495 3:0.120112 +1 1:0.220441 2:0.521042 3:0.824022 +2 1:0.631263 2:0.208417 3:0.22067 +2 1:1 2:0.957916 3:0.145251 +2 1:0.799599 2:0.432866 3:0.349162 +1 1:0.164329 2:0.57515 3:0.212291 +1 1:0.0981964 2:0.897796 3:0.547486 +2 1:0.0801603 2:0.0521042 3:0.662011 +2 1:0.945892 2:0.913828 3:0.0698324 +1 1:0.38477 2:0.777555 3:0.371508 +2 1:0.0541082 2:0.324649 3:0.460894 +2 1:0.266533 2:0.230461 3:0.977654 +2 1:0.737475 2:0.438878 3:0.907821 +2 1:0.827655 2:0.298597 3:0.776536 +2 1:0.416834 2:0.460922 3:0.265363 +1 1:0.699399 2:0.0981964 3:0.821229 +2 1:0.885772 2:0.412826 3:0.675978 +1 1:0.973948 2:0.406814 3:0.0642458 +2 1:0.472946 2:0.53507 3:0.46648 +2 1:0.783567 2:0.0881764 3:0.170391 +2 1:0.0761523 2:0.352705 3:0.986034 +2 1:0.903808 2:0.0721443 3:0.0865922 +1 1:0.314629 2:0.695391 3:0.240223 +2 1:0.987976 2:0.386774 3:0.712291 +1 1:0.0821643 2:0.745491 3:0.77933 +2 1:0.0541082 2:0.450902 3:0.810056 +1 1:0.45491 2:0.723447 3:0.75419 +1 1:0.0240481 2:0.517034 3:0.0195531 +2 1:0.963928 2:0.727455 3:0.0446927 +2 1:0.0601202 2:0.39479 3:0.555866 +1 1:0.288577 2:0.761523 3:0.0530726 +2 1:0.364729 2:0.492986 3:0.287709 +2 1:0.627255 2:0.0941884 3:0.0195531 +2 1:0.386774 2:0.118236 3:0.332402 +1 1:0.188377 2:0.855711 3:0.860335 +2 1:0.308617 2:0.114228 3:0.122905 +2 1:0.891784 2:0.60521 3:0.371508 +1 1:0.370741 2:0.901804 3:0.73743 +2 1:0.933868 2:0.669339 3:0.477654 +2 1:0.306613 2:0.376754 3:0.723464 +1 1:0.196393 2:0.901804 3:0.807263 +2 1:0.607214 2:0.280561 3:0.793296 +2 1:0.807615 2:0.236473 3:0.731844 +2 1:0.609218 2:0.567134 3:0.51676 +2 1:0.693387 2:0.637275 3:0.407821 +2 1:0.579158 2:0.142285 3:0.972067 +2 1:0.689379 2:0.202405 3:0.740223 +2 1:0.931864 2:0.913828 3:0.888268 +2 1:0.719439 2:0.755511 3:0.905028 +1 1:0.719439 2:0.282565 3:0.396648 +2 1:0.280561 2:0.370741 3:0.608939 +1 1:0.0480962 2:0.971944 3:0.567039 +2 1:0.302605 2:0.0380762 3:0.75419 +2 1:0.146293 2:0.00200401 3:0.0949721 +1 1:0.216433 2:0.971944 3:0.5 +2 1:0.50501 2:0.597194 3:0.111732 +1 1:0.0380762 2:0.625251 3:0.24581 +2 1:0.61523 2:0.126253 3:0.790503 +2 1:0.541082 2:0.0160321 3:0.550279 +2 1:0.106212 2:0.198397 3:0.444134 +2 1:0.332665 2:0.266533 3:0.0307263 +2 1:0.613226 2:0.647295 3:0.530726 +2 1:0.442886 2:0.174349 3:0.53352 +2 1:0.519038 2:0.855711 3:0.209497 +2 1:0.733467 2:0.218437 3:0.617318 +2 1:0.995992 2:0.861723 3:0.100559 +2 1:0.649299 2:0.531062 3:0.606145 +1 1:0.0320641 2:0.991984 3:0.650838 +2 1:0.961924 2:0.529058 3:0.837989 +2 1:0.787575 2:0.108216 3:0.832402 +2 1:0.41483 2:0.488978 3:0.24581 +2 1:0.801603 2:0.96994 3:0.0837989 +1 1:0.0521042 2:0.617234 3:0.994413 +2 1:0.551102 2:0.0521042 3:0.027933 +2 1:0.647295 2:0.783567 3:0.698324 +2 1:0.819639 2:0.913828 3:0.72905 +2 1:0.186373 2:0.264529 3:0.958101 +2 1:0.326653 2:0.0981964 3:0.98324 +2 1:0.735471 2:0.831663 3:0.815642 +2 1:0.739479 2:0.206413 3:0.324022 +1 1:0.513026 2:0.47495 3:0.614525 +2 1:0.835671 2:0.701403 3:0.326816 +1 1:0.0761523 2:0.849699 3:0.351955 +1 1:0.218437 3:0.24581 +2 1:0.765531 2:0.553106 3:0.0949721 +2 1:0.849699 2:0.352705 3:0.550279 +2 1:0.627255 2:0.891784 3:0.0558659 +2 1:0.845691 2:0.180361 3:0.399441 +1 1:0.258517 2:0.783567 3:0.460894 +2 1:0.452906 2:0.386774 3:0.307263 +2 1:0.659319 2:0.521042 3:0.46648 +1 1:0.0901804 2:0.763527 3:0.941341 +2 1:0.807615 2:0.446894 3:0.824022 +1 1:0.174349 2:0.523046 3:0.960894 +2 1:0.39479 2:0.352705 3:0.357542 +1 1:0.0541082 2:0.569138 3:0.0782123 +1 1:0.276553 2:0.551102 3:0.0670391 +2 1:0.410822 2:0.292585 3:0.98324 +2 1:0.779559 2:0.775551 3:0.192737 +2 1:0.230461 2:0.214429 3:0.52514 +2 1:0.649299 2:0.240481 3:0.547486 +2 1:0.364729 2:0.320641 3:0.385475 +2 1:0.669339 2:0.0681363 3:0.0698324 +2 1:0.531062 2:0.270541 3:0.586592 +1 1:0.406814 2:0.895792 3:0.379888 +2 1:0.873747 2:0.402806 3:0.796089 +2 1:0.360721 2:0.557114 3:0.0949721 +2 1:0.785571 2:0.691383 3:0.888268 +2 1:0.102204 2:0.104208 3:0.145251 +2 1:0.523046 2:0.543086 3:0.187151 +2 1:0.815631 2:0.212425 3:0.594972 +2 1:0.298597 2:0.164329 3:0.131285 +1 1:0.96994 2:0.01002 3:0.421788 +2 1:0.316633 2:0.180361 3:0.243017 +2 1:0.923848 2:0.41483 3:0.988827 +1 1:0.0420842 2:0.687375 3:0.821229 +1 1:0.00601202 2:0.561122 3:0.0307263 +2 1:0.627255 2:0.340681 3:0.740223 +2 1:0.492986 2:0.282565 3:0.558659 +2 1:0.813627 2:0.224449 3:0.27933 +2 1:0.308617 2:0.346693 3:0.949721 +2 1:0.168337 2:0.222445 3:0.502793 +2 1:0.234469 2:0.202405 3:0.748603 +2 1:0.983968 2:0.737475 3:0.824022 +2 1:0.915832 2:0.591182 3:0.930168 +1 1:0.901804 2:0.0661323 3:0.382682 +1 1:0.204409 2:0.791583 3:0.047486 +2 1:0.793587 2:0.160321 3:0.581006 +2 1:0.0340681 2:0.509018 3:0.977654 +2 1:0.937876 2:0.136273 3:0.444134 +2 1:0.735471 2:0.731463 3:0.558659 +1 1:0.360721 2:0.665331 3:0.49162 +1 1:0.402806 2:0.661323 3:0.377095 +2 1:0.204409 2:0.406814 3:0.405028 +2 1:0.188377 2:0.440882 3:0.195531 +2 1:0.430862 2:0.52505 3:0.50838 +2 1:0.380762 2:0.266533 3:0.449721 +2 1:0.122244 2:0.392786 3:0.418994 +1 1:0.248497 2:0.839679 3:0.955307 +2 1:0.559118 2:0.509018 3:0.148045 +1 1:0.188377 2:0.46493 3:0.301676 +1 1:0.212425 2:0.647295 3:0.108939 +1 1:0.0781563 2:0.825651 3:0.910615 +2 1:0.446894 2:0.192385 3:0.712291 +1 1:0.298597 2:0.633267 3:0.628492 +2 1:0.450902 2:0.202405 3:0.0837989 +2 1:0.781563 2:0.9499 3:0.240223 +1 1:0.220441 2:0.669339 3:0.0195531 +2 1:0.623246 2:0.663327 3:0.203911 +2 1:0.783567 2:0.38477 3:0.620112 +2 1:0.871743 2:0.887776 3:0.368715 +1 1:0.967936 2:0.012024 3:0.385475 +1 1:0.256513 2:0.633267 3:0.631285 +2 1:0.541082 2:0.0480962 3:0.689944 +2 1:0.665331 2:0.492986 3:0.265363 +1 1:0.0601202 2:0.717435 3:0.0726257 +2 1:0.0360721 2:0.360721 3:0.24581 +2 1:0.248497 2:0.104208 3:0.846369 +1 1:0.895792 2:0.00400802 3:0.949721 +2 1:0.324649 2:0.264529 3:0.315642 +2 1:0.819639 2:0.855711 3:0.248603 +2 1:0.663327 2:0.98998 3:0.547486 +1 1:0.0881764 2:0.647295 3:0.287709 +2 1:0.320641 2:0.476954 3:0.413408 +2 1:0.60521 2:0.517034 3:0.586592 +2 1:0.825651 2:0.152305 3:0.581006 +2 1:0.012024 2:0.753507 3:0.312849 +2 1:0.681363 2:0.294589 3:0.293296 +2 1:0.681363 2:0.0581162 3:0.924581 +1 1:0.126253 2:0.973948 3:0.606145 +2 1:0.90982 2:0.448898 3:0.162011 +2 1:0.597194 2:0.358717 3:0.932961 +2 1:0.847695 2:0.859719 3:0.340782 +2 1:0.935872 2:0.52505 3:0.374302 +1 1:0.887776 2:0.0300601 3:0.667598 +2 1:0.741483 2:0.509018 3:0.407821 +2 1:0.537074 2:0.492986 3:0.550279 +2 1:0.819639 2:0.352705 3:1 +2 1:0.691383 2:0.228457 3:0.0418994 +2 1:0.452906 2:0.358717 3:0.0949721 +2 1:0.571142 2:0.280561 3:0.944134 +2 1:0.799599 2:0.0320641 3:0.0251397 +2 1:0.931864 2:0.214429 3:0.662011 +2 1:0.709419 2:0.739479 3:0.231844 +1 1:0.937876 2:0.114228 3:0.569832 +1 1:0.138277 2:0.687375 3:0.868715 +1 1:0.0981964 2:0.635271 3:0.25419 +2 1:0.296593 2:0.513026 3:0.653631 +2 1:0.927856 2:0.422846 3:0.399441 +2 1:0.981964 2:0.156313 3:0.405028 +1 1:0.284569 2:0.683367 3:0.243017 +2 1:0.729459 2:0.43487 3:0.810056 +2 1:0.43487 2:0.214429 3:0.396648 +2 1:0.893788 2:0.462926 3:0.854749 +2 1:0.0220441 2:0.0340681 3:0.826816 +2 1:0.330661 2:0.314629 3:0.734637 +2 1:0.138277 2:0.178357 3:0.0530726 +2 1:0.48497 2:0.549098 3:0.50838 +2 1:0.509018 2:0.597194 3:0.902235 +1 1:0.0581162 2:0.90982 3:0.871508 +1 1:0.160321 2:0.619238 3:0.99162 +2 1:0.717435 2:0.320641 3:0.972067 +2 1:0.0701403 2:0.292585 3:0.620112 +2 1:0.977956 2:0.418838 3:0.134078 +2 1:0.867735 2:0.0561122 3:0.944134 +2 1:0.975952 2:0.755511 3:0.368715 +1 1:0.174349 2:0.57515 3:0.0111732 +2 1:0.619238 2:0.931864 3:0.0921788 +1 1:0.0701403 2:0.935872 3:0.290503 +2 1:0.410822 2:0.501002 3:0.391061 +2 1:0.561122 2:0.571142 3:0.734637 +2 1:0.406814 2:0.130261 3:0.502793 +2 1:0.156313 2:0.206413 3:0.606145 +2 1:0.649299 2:0.482966 3:0.195531 +2 1:0.699399 2:0.282565 3:0.547486 +2 1:0.48497 2:0.180361 3:0.494413 +1 1:0.138277 2:0.685371 3:0.159218 +2 1:0.533066 2:0.306613 3:0.606145 +1 1:0.386774 2:0.803607 3:0.0670391 +2 1:0.609218 2:0.571142 3:0.958101 +2 1:0.366733 2:0.0360721 3:0.0726257 +2 1:0.821643 2:0.104208 3:0.234637 +2 1:0.767535 2:0.0561122 3:0.240223 +2 1:0.132265 2:0.1002 3:0.307263 +2 1:0.00801603 2:0.318637 3:0.76257 +2 1:0.855711 2:0.38477 3:0.24581 +2 1:0.701403 2:0.428858 3:0.027933 +1 1:0.202405 2:0.981964 3:0.480447 +2 1:0.46493 2:0.0741483 3:0.896648 +2 1:0.751503 2:0.731463 3:0.832402 +2 1:0.49499 2:0.436874 3:0.963687 +2 1:0.11022 2:0.472946 3:0.0363128 +2 1:0.637275 2:0.198397 3:0.589385 +2 1:0.891784 2:0.368737 3:0.148045 +2 1:0.917836 2:0.458918 3:0.156425 +2 1:0.136273 2:0.0601202 3:0.76257 +2 1:0.985972 2:0.46493 3:0.265363 +1 1:0.136273 2:0.779559 3:0.0949721 +2 1:0.158317 2:0.00200401 3:0.673184 +2 1:0.330661 2:0.00400802 3:0.860335 +2 1:0.48497 2:0.122244 3:0.0027933 +1 1:0.430862 2:0.661323 3:0.536313 +2 1:0.735471 2:0.913828 3:0.829609 +2 1:0.368737 2:0.38477 3:0.76257 +2 1:0.346693 2:0.294589 3:0.893855 +2 1:0.687375 2:0.787575 3:0.784916 +2 1:0.713427 2:0.805611 3:0.455307 +2 1:0.641283 2:0.933868 3:0.287709 +1 1:0.0440882 2:0.705411 3:0.75419 +2 1:0.993988 2:0.280561 3:0.0418994 +1 1:0.0941884 2:0.907816 3:0.405028 +2 1:0.498998 2:0.338677 3:0.765363 +2 1:0.759519 2:0.218437 3:0.74581 +2 1:0.216433 2:0.318637 3:0.226257 +2 1:0.549098 2:0.498998 3:0.472067 +2 1:0.997996 2:0.995992 3:0.712291 +2 1:0.953908 2:0.987976 3:0.765363 +2 1:0.887776 2:0.787575 3:0.891061 +1 1:0.216433 2:0.709419 3:0.907821 +2 1:0.290581 2:0.42485 3:0.293296 +2 1:0.438878 2:0.476954 3:0.0027933 +2 1:0.665331 2:0.733467 3:0.287709 +2 1:0.198397 2:0.106212 3:0.0614525 +2 1:0.821643 2:0.651303 3:0.684358 +1 1:0.196393 2:0.799599 3:0.72905 +1 1:0.396794 2:0.741483 3:0.946927 +2 1:0.0220441 2:0.501002 3:0.709497 +2 1:0.308617 2:0.222445 3:0.832402 +2 1:0.719439 2:0.87976 3:0.24581 +2 1:0.196393 2:0.178357 3:0.768156 +2 1:0.693387 2:0.709419 3:0.843575 +2 1:0.965932 2:0.194389 3:0.0865922 +1 1:0.272545 2:0.897796 3:0.625698 +2 1:0.408818 2:0.334669 3:0.418994 +2 1:0.709419 2:0.835671 3:0.703911 +2 1:0.995992 2:0.645291 3:0.726257 +2 1:0.915832 2:0.597194 3:0.240223 +2 1:0.390782 2:0.0861723 3:0.312849 +2 1:0.713427 2:0.755511 3:0.23743 +2 1:0.128257 2:0.230461 3:0.818436 +2 1:0.699399 2:0.567134 3:0.226257 +2 1:0.0240481 2:0.480962 3:0.631285 +2 1:0.659319 2:0.823647 3:0.131285 +2 1:0.398798 2:0.166333 3:0.634078 +2 1:0.609218 2:0.436874 3:0.896648 +2 1:0.328657 2:0.0861723 3:0.435754 +2 1:0.122244 2:0.256513 3:0.075419 +2 1:0.753507 2:0.993988 3:0.645251 +2 1:0.0561122 2:0.49499 3:0.346369 +2 1:0.0761523 2:0.372745 3:0.916201 +2 1:0.559118 2:0.280561 3:0.751397 +2 1:0.849699 2:0.8998 3:0.148045 +2 1:0.57515 2:0.44489 3:0.256983 +2 1:0.476954 2:0.60521 3:0.628492 +2 1:0.927856 2:0.963928 3:0.505587 +2 1:0.823647 2:0.44489 3:0.0558659 +1 1:0.450902 2:0.819639 3:0.0446927 +1 1:0.134269 2:0.669339 3:0.287709 +2 1:0.92986 2:0.925852 3:0.821229 +1 1:0.00400802 2:0.306613 3:0.51676 +2 1:0.256513 2:0.272545 3:0.217877 +1 1:0.260521 2:0.529058 3:0.569832 +2 1:0.252505 2:0.160321 3:0.488827 +2 1:0.470942 2:0.531062 3:0.0726257 +2 1:0.691383 2:0.116232 3:0.480447 +2 1:0.609218 2:0.192385 3:0.293296 +2 1:0.362725 2:0.322645 3:0.0111732 +2 1:0.142285 2:0.0340681 3:0.441341 +2 1:0.897796 2:0.328657 3:0.804469 +1 1:0.188377 2:0.855711 3:0.910615 +2 1:0.803607 2:0.314629 3:0.340782 +1 1:0.186373 2:0.697395 3:0.857542 +2 1:0.188377 2:0.352705 3:0.77095 +2 1:0.579158 2:0.799599 3:0.0586592 +2 1:0.727455 2:0.893788 3:0.0446927 +2 1:0.753507 2:0.438878 3:0.932961 +1 1:0.370741 2:0.709419 3:0.99162 +2 1:0.266533 2:0.330661 3:0.703911 +2 1:0.911824 2:0.997996 3:0.784916 +2 1:0.829659 2:0.681363 3:0.723464 +1 1:0.895792 2:0.0761523 3:0.857542 +2 1:0.751503 2:0.607214 3:0.818436 +2 1:0.681363 2:0.108216 3:0.681564 +2 1:0.0741483 2:0.336673 3:0.379888 +2 1:0.350701 2:0.563126 3:0.290503 +2 1:0.274549 2:0.977956 3:0.51676 +2 1:0.653307 2:0.472946 3:1 +2 1:0.701403 2:0.767535 3:0.857542 +2 1:0.348697 2:0.991984 3:0.698324 +2 1:0.458918 2:0.563126 3:0.899441 +2 1:0.645291 2:0.472946 3:0.0642458 +2 1:0.647295 2:0.182365 3:0.932961 +1 1:0.458918 2:0.462926 3:0.910615 +2 1:0.438878 2:0.0821643 3:0.544693 +2 1:0.448898 2:0.561122 3:0.0949721 +2 1:0.767535 2:0.867735 3:0.212291 +2 1:0.402806 2:0.977956 3:0.72905 +1 1:0.236473 2:0.967936 3:0.891061 +2 1:0.298597 2:0.553106 3:0.963687 +1 1:0.0921844 2:0.621242 3:0.96648 +1 1:0.0561122 2:0.847695 3:0.547486 +1 1:0.38477 2:0.825651 3:0.0027933 +2 1:0.835671 2:0.206413 3:0.72067 +2 1:0.547094 2:0.661323 3:0.648045 +1 1:0.124248 2:0.777555 3:0.315642 +2 1:0.154309 2:0.152305 3:0.555866 +2 1:0.346693 2:0.296593 3:0.0363128 +2 1:1 2:0.39479 3:0.851955 +2 1:0.873747 2:0.258517 3:0.391061 +2 1:0.58517 2:0.839679 3:0.807263 +1 1:0.438878 2:0.617234 3:0.617318 +1 1:0.182365 2:0.629259 3:0.321229 +2 1:0.697395 2:0.354709 3:0.290503 +2 1:0.761523 2:0.446894 3:0.388268 +2 1:0.873747 2:0.861723 3:0.463687 +1 1:0.0561122 2:0.993988 3:0.52514 +2 1:0.845691 2:0.927856 3:0.695531 +2 2:0.184369 3:0.290503 +2 1:0.731463 2:0.376754 3:0.636872 +1 1:0.148297 2:0.941884 3:0.22905 +2 1:0.801603 2:0.0340681 3:0.472067 +2 1:0.551102 2:0.134269 3:0.164804 +1 1:0.258517 2:0.897796 3:0.142458 +2 1:0.164329 2:0.324649 3:0.734637 +2 1:0.91984 2:0.557114 3:0.921788 +2 1:0.198397 2:0.328657 3:0.893855 +2 1:0.811623 2:0.0841683 3:0.636872 +1 1:0.438878 2:0.701403 3:0.379888 +2 1:0.432866 2:0.997996 3:0.371508 +2 1:0.56513 2:0.765531 3:0.326816 +1 1:0.350701 2:0.729459 3:0.603352 +2 1:0.156313 2:0.108216 3:0.765363 +2 1:0.250501 2:0.322645 3:0.0782123 +2 1:0.468938 2:0.937876 3:0.0195531 +2 1:0.845691 2:0.0961924 3:0.541899 +2 1:0.490982 2:0.549098 3:0.73743 +2 1:0.460922 2:0.136273 3:0.969274 +2 1:0.0180361 2:0.0180361 3:0.860335 +2 1:0.98998 2:0.470942 3:0.0530726 +2 1:0.61523 2:0.252505 3:0.00558659 +1 1:0.352705 2:0.941884 3:0.27933 +1 1:0.316633 2:0.573146 3:0.167598 +2 1:0.647295 2:0.533066 3:0.932961 +2 1:0.186373 2:0.0501002 3:0.170391 +2 1:0.659319 2:0.0841683 3:0.748603 +2 1:0.739479 2:0.42485 3:0.907821 +2 1:0.697395 2:0.452906 3:0.986034 +1 1:0.0140281 2:0.93988 3:0.117318 +2 1:0.987976 2:0.659319 3:0.849162 +1 1:0.144289 2:0.619238 3:0.0782123 +2 1:0.392786 2:0.11022 3:0.438547 +2 1:0.396794 2:0.218437 3:0.885475 +2 1:0.348697 2:0.577154 3:0.189944 +2 1:0.174349 2:0.308617 3:0.76257 +2 1:0.549098 2:0.689379 3:0.636872 +2 1:0.270541 2:0.294589 3:0.100559 +2 1:0.745491 2:0.551102 3:0.988827 +2 1:0.45491 2:0.354709 3:0.23743 +2 1:0.603206 2:0.204409 3:0.125698 +2 1:0.198397 2:0.274549 3:0.513966 +2 1:0.741483 2:0.621242 3:0.396648 +2 1:0.685371 2:0.0220441 3:0.139665 +2 1:0.54509 2:0.953908 3:0.234637 +1 1:0.220441 2:0.967936 3:0.793296 +2 1:0.665331 2:0.49499 3:0.452514 +2 1:0.683367 2:0.679359 3:0.505587 +2 1:0.607214 2:0.268537 3:0.751397 +2 1:0.907816 2:0.747495 3:0.882682 +1 1:0.0941884 2:0.571142 3:0.0558659 +2 1:0.825651 2:0.230461 3:0.603352 +1 1:0.142285 2:0.963928 3:0.346369 +1 1:0.272545 2:0.583166 3:0.0670391 +2 1:0.388778 2:0.418838 +2 1:0.59519 2:0.180361 3:0.765363 +2 1:0.747495 2:0.340681 3:0.324022 +2 1:0.743487 2:0.296593 3:0.561453 +2 1:0.338677 2:0.212425 3:0.164804 +1 1:0.146293 2:0.93988 3:0.555866 +2 1:0.527054 2:0.264529 3:0.150838 +1 1:0.0861723 2:0.861723 3:0.622905 +2 1:0.761523 2:0.691383 3:0.76257 +2 1:0.188377 2:0.0621242 3:0.603352 +2 1:0.707415 2:0.480962 3:0.829609 +2 1:0.98998 2:0.486974 3:0.282123 +1 1:0.192385 2:0.460922 3:0.0223464 +2 1:0.222445 2:0.366733 3:0.77095 +2 1:0.114228 2:0.330661 3:0.455307 +2 1:0.559118 2:0.49499 3:0.986034 +2 1:0.763527 2:0.448898 3:0.273743 +2 1:0.915832 2:0.258517 3:0.952514 +1 1:0.250501 2:0.857715 3:0.835196 +2 1:0.48497 2:0.226453 3:0.712291 +2 1:0.95992 2:0.753507 3:0.243017 +2 1:0.683367 2:0.430862 3:0.136872 +2 1:0.743487 2:0.190381 3:0.268156 +2 1:0.01002 2:0.468938 3:0.382682 +2 1:0.841683 2:0.388778 3:0.0865922 +1 1:0.0821643 2:0.749499 3:0.829609 +1 1:0.184369 2:0.803607 3:0.988827 +1 1:0.146293 2:0.937876 3:0.0726257 +2 1:0.895792 2:0.324649 3:0.243017 +2 1:0.380762 2:0.973948 3:0.136872 +2 1:0.58517 2:0.0140281 3:0.301676 +2 1:0.160321 2:0.553106 3:0.673184 +2 1:0.935872 2:0.811623 3:0.388268 +1 1:0.252505 2:0.853707 3:0.865922 +2 1:0.519038 2:0.815631 3:0.365922 +1 1:0.458918 2:0.95992 3:0.111732 +1 1:0.114228 2:0.891784 3:0.960894 +2 1:0.613226 2:0.164329 3:0.0810056 +2 1:0.374749 2:0.188377 3:0.321229 +1 1:0.154309 2:0.905812 3:0.614525 +1 1:0.116232 2:0.911824 3:0.382682 +2 1:0.693387 2:0.647295 3:0.377095 +2 1:0.48497 2:0.396794 3:0.924581 +2 1:0.603206 2:0.276553 3:0.734637 +2 1:0.507014 2:0.216433 3:0.201117 +2 1:0.0220441 2:0.48497 3:0.756983 +2 1:0.511022 2:0.835671 3:0.156425 +2 1:0.811623 2:0.0561122 3:0.0837989 +2 1:0.176353 2:0.406814 3:0.209497 +2 1:0.56513 2:0.418838 3:0.865922 +1 1:0.635271 2:0.0440882 3:0.603352 +2 1:0.56513 2:0.953908 3:0.994413 +1 1:0.356713 2:0.813627 3:0.290503 +2 1:0.274549 2:0.460922 3:0.0251397 +2 1:0.380762 2:0.971944 3:0.399441 +2 1:0.480962 2:0.759519 3:0.664804 +2 1:0.675351 2:0.216433 3:0.703911 +2 1:0.130261 2:0.334669 3:0.617318 +2 1:0.755511 2:0.663327 3:0.203911 +2 1:0.617234 2:0.466934 3:0.167598 +2 1:0.260521 2:0.436874 3:0.0586592 +2 1:0.462926 2:0.174349 3:0.550279 +2 1:0.0701403 2:0.0320641 3:0.846369 +2 1:0.294589 2:0.274549 3:0.667598 +2 1:0.282565 2:0.0180361 3:0.709497 +2 1:0.0581162 2:0.501002 3:0.723464 +2 1:0.813627 2:0.897796 3:0.170391 +2 1:0.498998 2:0.819639 3:0.497207 +2 1:0.855711 2:0.412826 3:0.324022 +2 1:0.851703 2:0.519038 3:0.703911 +1 1:0.150301 2:0.747495 3:0.0502793 +2 1:0.54509 2:0.310621 3:0.26257 +2 1:0.386774 2:0.39479 3:0.536313 +2 1:0.330661 2:0.322645 3:0.0670391 +2 1:0.498998 2:0.40481 3:0.430168 +2 1:0.993988 2:0.280561 3:0.455307 +2 1:0.53507 2:0.783567 3:0.273743 +1 1:0.442886 2:0.651303 3:0.916201 +2 1:0.869739 2:0.787575 3:0.837989 +2 1:0.93988 2:0.519038 3:0.256983 +1 1:0.45491 2:0.803607 3:0.882682 +2 1:0.138277 2:0.306613 3:0.801676 +1 1:0.138277 2:0.681363 3:0.558659 +2 1:1 2:0.234469 3:0.567039 +2 1:0.162325 2:0.0400802 3:0.773743 +1 1:0.925852 2:0.102204 3:0.0307263 +2 1:0.410822 2:0.332665 3:0.488827 +2 1:0.228457 2:0.472946 3:0.634078 +2 1:0.769539 2:0.853707 3:0.413408 +2 1:0.296593 2:0.296593 3:0.988827 +1 1:0.192385 2:0.745491 3:0.416201 +2 1:0.561122 2:0.619238 3:0.142458 +2 1:0.567134 2:0.0140281 3:0.698324 +2 1:0.657315 2:0.248497 3:0.276536 +1 1:0.0581162 2:0.943888 3:0.0111732 +2 1:0.0981964 2:0.368737 3:0.541899 +2 1:0.621242 2:0.262525 3:0.963687 +2 1:0.657315 2:0.242485 3:0.287709 +2 1:0.527054 2:0.695391 3:0.26257 +2 1:0.603206 2:0.0561122 3:0.298883 +2 1:0.332665 2:0.308617 3:0.863128 +2 1:0.338677 2:0.194389 3:0.494413 +2 1:0.184369 2:0.268537 3:0.153631 +2 1:0.122244 2:0.238477 3:0.882682 +2 1:0.867735 2:0.755511 3:0.896648 +2 1:0.150301 2:0.00801603 3:0.142458 +2 1:0.282565 2:0.0240481 3:0.203911 +1 1:0.184369 2:0.859719 3:0.636872 +2 1:0.581162 2:0.0601202 3:0.787709 +2 1:0.46493 2:0.767535 3:0.918994 +2 1:0.861723 2:0.0841683 3:0.393855 +2 1:0.557114 2:0.152305 3:0.075419 +1 1:0.342685 2:0.8998 3:0.977654 +2 1:0.857715 2:0.953908 3:0.449721 +2 1:0.581162 2:0.38477 3:0.505587 +2 1:0.517034 2:0.396794 3:0.410615 +2 1:0.334669 2:0.178357 3:0.148045 +2 1:0.53507 2:0.212425 3:0.597765 +2 1:0.386774 2:0.416834 3:0.178771 +1 1:0.304609 2:0.667335 3:0.393855 +2 1:0.156313 2:0.410822 3:0.572626 +2 1:0.362725 2:0.240481 3:0.860335 +2 1:0.877756 2:0.0300601 3:0.76257 +2 1:0.294589 2:0.0781563 3:0.634078 +1 1:0.352705 2:0.643287 3:0.743017 +2 1:0.412826 2:0.410822 3:0.620112 +2 1:0.450902 2:0.430862 3:0.5 +2 1:0.573146 2:0.601202 3:0.972067 +2 1:0.661323 2:0.302605 3:0.628492 +2 1:0.791583 2:0.927856 3:0.114525 +1 1:0.945892 2:0.00400802 3:0.0977654 +2 1:0.0480962 2:0.132265 3:0.164804 +2 1:0.833667 2:0.252505 3:0.653631 +2 1:0.250501 2:0.0661323 3:0.798883 +1 1:0.390782 2:0.863727 3:0.522346 +2 1:0.675351 2:0.408818 3:0.692737 +2 1:0.0881764 3:0.944134 +2 1:0.551102 2:0.921844 3:0.458101 +2 1:0.130261 2:0.591182 3:0.698324 +2 1:0.140281 2:0.190381 3:0.0139665 +2 1:0.837675 2:0.527054 3:0.740223 +2 1:0.955912 2:0.496994 3:0.486034 +2 1:0.164329 2:0.396794 3:0.608939 +2 1:0.723447 2:0.53507 3:0.675978 +2 1:0.0961924 2:0.0801603 3:0.756983 +1 1:0.104208 2:0.953908 3:0.156425 +2 1:0.837675 2:0.50501 3:0.231844 +2 1:0.635271 2:0.246493 3:0.326816 +2 1:0.883768 2:0.925852 3:0.701117 +2 1:0.637275 2:0.108216 3:0.139665 +2 1:0.945892 2:0.386774 3:0.648045 +2 1:0.56513 2:0.480962 3:0.689944 +1 1:0.38477 2:0.737475 3:0.438547 +2 1:0.767535 2:0.567134 3:0.0614525 +2 1:0.635271 2:0.230461 3:0.472067 +2 1:0.789579 2:0.997996 3:0.72067 +2 1:0.40481 2:0.326653 3:0.256983 +2 1:0.609218 2:0.0280561 3:0.606145 +2 1:0.697395 2:0.386774 3:0.385475 +2 1:0.486974 2:0.913828 3:0.564246 +2 1:0.134269 2:0.134269 3:0.53352 +2 1:0.943888 2:0.374749 3:0.5 +2 1:0.142285 2:0.430862 3:0.553073 +2 1:0.206413 2:0.152305 3:0.51676 +2 1:0.663327 2:0.314629 3:0.114525 +2 1:0.55511 2:0.0941884 3:0.167598 +2 1:0.967936 2:0.751503 3:0.455307 +2 1:0.967936 2:0.601202 3:0.980447 +2 1:0.246493 2:0.376754 3:0.773743 +2 1:0.420842 2:0.276553 3:0.175978 +2 1:0.753507 2:0.0741483 3:0.307263 +2 1:0.981964 2:0.833667 3:0.234637 +1 1:0.426854 2:0.8998 3:0.175978 +2 1:0.448898 2:0.144289 3:0.396648 +2 1:0.501002 2:0.170341 3:0.251397 +2 1:0.635271 2:0.0541082 3:0.96648 +2 1:0.791583 2:0.973948 3:0.223464 +2 1:0.713427 2:0.511022 3:0.488827 +2 1:0.761523 2:0.711423 3:0.918994 +2 1:0.735471 2:0.913828 3:0.99162 +2 1:0.917836 2:0.697395 3:0.617318 +2 1:0.222445 2:0.224449 3:0.675978 +2 1:0.114228 2:0.344689 3:0.871508 +1 1:0.108216 2:0.941884 3:0.444134 +2 1:0.529058 2:0.577154 3:0.715084 +1 1:0.721443 2:0.0581162 3:0.407821 +1 1:0.226453 2:0.961924 3:0.798883 +2 1:0.41483 2:0.519038 3:0.575419 +1 1:0.314629 2:0.727455 3:0.265363 +2 1:0.937876 2:0.769539 3:0.248603 +2 1:0.43487 2:0.0901804 3:0.427374 +2 1:0.569138 2:0.697395 3:0.675978 +1 1:0.11022 2:0.759519 3:0.796089 +2 1:0.649299 2:0.559118 3:0.796089 +2 1:0.0420842 2:0.0921844 3:0.153631 +2 1:0.0861723 2:0.551102 3:0.0418994 +2 1:0.901804 2:0.733467 3:0.139665 +2 1:0.170341 2:0.156313 3:0.343575 +2 1:0.937876 2:0.402806 3:0.0921788 +1 1:0.136273 2:0.707415 3:0.997207 +2 1:0.577154 2:0.274549 3:0.184358 +2 1:0.689379 2:0.206413 3:0.337989 +2 1:0.887776 2:0.553106 3:0.480447 +2 1:0.40481 2:0.0901804 3:0.946927 +2 1:0.645291 2:0.521042 3:0.98324 +2 1:0.805611 2:0.0981964 3:0.0391061 +2 1:0.264529 2:0.266533 3:0.217877 +2 1:0.0661323 2:0.284569 3:0.284916 +2 1:0.50501 2:0.46493 3:0.329609 +2 1:0.583166 2:0.781563 3:0.539106 +1 1:0.262525 2:0.693387 3:0.988827 +2 1:0.795591 2:0.56513 3:0.899441 +2 1:0.863727 2:0.739479 3:0.103352 +1 1:0.258517 2:0.721443 3:0.675978 +2 1:0.887776 2:0.55511 3:0.24581 +2 1:0.9499 2:0.300601 3:0.824022 +1 1:0.0721443 2:0.975952 3:0.480447 +2 1:0.148297 2:0.124248 3:0.282123 +1 1:0.0901804 2:0.739479 3:0.636872 +2 1:0.396794 2:0.603206 3:0.488827 +1 1:0.0561122 2:0.783567 3:0.00837989 +1 1:0.0180361 2:0.809619 3:0.832402 +1 1:0.116232 2:0.713427 3:0.310056 +2 1:0.87976 2:0.204409 3:0.740223 +2 1:0.346693 2:0.446894 3:0.391061 +2 1:0.779559 2:0.12024 3:0.388268 +2 1:0.521042 2:0.9499 3:0.446927 +2 1:0.519038 2:0.378758 3:0.678771 +1 1:0.214429 2:0.905812 3:0.469274 +1 1:0.0661323 2:0.673347 3:0.413408 +1 1:0.294589 2:0.947896 3:0.00558659 +2 1:0.322645 2:0.188377 3:0.0195531 +2 1:0.761523 2:0.847695 3:0.192737 +2 1:0.46493 2:0.490982 3:0.284916 +2 1:0.657315 2:0.440882 3:0.243017 +2 1:0.51503 2:0.498998 +2 1:0.61523 2:0.639279 3:0.787709 +2 1:0.607214 2:0.863727 3:0.136872 +2 1:0.893788 2:0.897796 3:0.455307 +2 1:0.210421 2:0.172345 3:0.634078 +2 1:0.388778 2:0.629259 3:0.23743 +2 1:0.226453 2:0.356713 3:0.765363 +2 1:0.50501 2:0.823647 3:0.949721 +2 1:0.827655 2:0.406814 3:0.259777 +2 1:0.170341 2:0.00601202 3:0.0530726 +2 1:0.857715 2:0.164329 3:0.564246 +2 1:0.675351 2:0.52505 3:0.673184 +1 1:0.012024 2:0.667335 3:0.27933 +2 1:0.282565 2:0.0340681 3:0.223464 +1 1:0.324649 2:0.807615 3:0.684358 +1 1:0.290581 2:0.885772 3:0.740223 +1 1:0.268537 2:0.987976 3:0.100559 +1 1:0.294589 2:0.571142 3:0.318436 +2 1:0.172345 2:0.354709 3:0.969274 +2 1:0.531062 2:0.186373 3:0.675978 +2 1:0.0741483 2:0.446894 3:0.0586592 +2 1:0.136273 2:0.344689 3:0.150838 +2 1:0.529058 2:0.883768 3:0.52514 +1 1:0.396794 2:0.753507 3:0.650838 +2 1:0.428858 2:0.358717 3:0.455307 +2 1:0.921844 2:0.300601 3:0.234637 +2 1:0.278557 2:0.292585 3:0.346369 +2 1:0.875752 2:0.61523 3:0.930168 +2 1:0.184369 2:0.420842 3:0.27095 +2 1:0.761523 2:0.893788 3:0.444134 +2 1:0.563126 2:0.130261 3:0.622905 +2 1:0.1002 2:0.200401 3:0.26257 +1 1:0.368737 2:0.831663 3:0.913408 +2 1:0.839679 2:0.460922 3:0.949721 +1 1:0.192385 2:0.547094 3:0.622905 +1 1:0.154309 2:0.815631 3:0.955307 +2 1:0.877756 2:0.721443 3:0.396648 +2 1:0.977956 2:0.905812 3:0.924581 +2 1:0.709419 2:0.963928 3:0.905028 +2 1:0.765531 2:0.669339 3:0.178771 +2 1:0.773547 2:0.503006 3:0.173184 +1 1:0.188377 2:0.753507 3:0.365922 +2 1:0.456914 2:0.192385 3:0.153631 +2 1:0.825651 2:0.719439 3:0.916201 +1 1:0.174349 2:0.803607 3:0.209497 +2 1:0.57515 2:0.573146 3:0.0446927 +1 1:0.0861723 2:0.941884 3:0.765363 +2 1:0.733467 2:0.376754 3:0.614525 +2 1:0.436874 2:0.0621242 3:0.569832 +2 1:0.859719 2:0.561122 3:0.148045 +2 1:0.204409 2:0.0761523 3:0.273743 +1 1:0.164329 2:0.911824 3:0.818436 +2 1:0.677355 2:0.0400802 3:0.667598 +2 1:0.152305 2:0.0541082 3:0.748603 +2 1:0.354709 2:0.430862 3:0.301676 +2 1:0.799599 2:0.90982 3:0.868715 +1 1:0.971944 2:0.0861723 3:0.142458 +1 1:0.158317 2:0.603206 3:0.972067 +1 1:0.0380762 2:0.829659 3:0.913408 +2 1:0.0941884 2:0.0541082 3:0.226257 +1 1:0.87976 2:0.0561122 3:0.768156 +2 1:0.507014 2:1 3:0.5 +2 1:0.254509 2:0.108216 3:0.164804 +2 1:0.931864 2:0.148297 3:0.888268 +2 1:0.597194 2:0.707415 3:0.0614525 +2 1:0.723447 2:0.294589 3:0.776536 +2 1:0.527054 2:0.416834 3:0.148045 +2 1:0.671343 2:0.0400802 3:0.949721 +2 1:0.320641 2:0.0781563 3:0.441341 +2 1:0.318637 2:0.0501002 3:0.670391 +2 1:0.328657 2:0.186373 3:0.893855 +1 1:0.184369 2:0.529058 3:0.849162 +2 1:0.863727 2:0.228457 3:0.167598 +2 1:0.533066 2:0.827655 3:0.0586592 +1 1:0.226453 2:0.657315 3:0.385475 +1 1:0.346693 2:0.713427 3:0.818436 +2 1:0.691383 2:0.839679 3:0.46648 +2 1:0.0521042 2:0.410822 3:0.416201 +2 1:0.583166 2:0.51503 3:0.265363 +2 1:0.144289 2:0.519038 3:0.687151 +1 1:0.637275 2:0.302605 3:0.798883 +2 1:0.472946 2:0.859719 3:0.248603 +2 1:0.498998 2:0.162325 3:0.662011 +1 1:0.352705 2:0.695391 3:0.896648 +1 1:0.298597 2:0.581162 3:0.195531 +2 1:0.547094 2:0.222445 3:0.354749 +2 1:0.426854 2:0.547094 3:0.511173 +2 1:0.0180361 2:0.324649 3:0.0726257 +2 1:0.995992 2:0.430862 3:0.955307 +2 1:0.665331 2:0.765531 3:0.569832 +2 1:0.416834 2:0.248497 3:0.846369 +1 1:0.539078 2:0.438878 3:0.377095 +1 1:0.43487 2:0.635271 3:0.0502793 +2 1:0.577154 2:0.819639 3:0.343575 +2 1:0.418838 2:0.332665 3:0.162011 +2 1:0.781563 2:0.649299 3:0.346369 +2 1:0.953908 2:0.513026 3:0.469274 +2 1:0.967936 2:0.422846 3:0.231844 +1 1:0.126253 2:0.985972 3:0.187151 +2 1:0.697395 2:0.901804 3:0.276536 +2 1:0.587174 2:0.272545 3:0.307263 +2 1:0.543086 2:0.687375 3:0.748603 +2 1:0.430862 2:0.11022 3:0.628492 +1 1:0.446894 2:0.501002 3:0.743017 +1 1:0.40481 2:0.661323 3:0.111732 +1 1:0.276553 2:0.51503 3:0.122905 +2 1:0.749499 2:0.52505 3:0.815642 +2 1:0.669339 2:0.713427 3:0.0223464 +1 1:0.45491 2:0.653307 3:0.72905 +1 1:0.154309 2:0.92986 3:0.851955 +2 1:0.881764 2:0.761523 3:0.497207 +2 1:0.835671 2:0.162325 3:0.776536 +2 1:0.711423 2:0.797595 3:0.134078 +1 1:0.0260521 2:0.637275 3:0.910615 +2 1:0.815631 2:0.863727 3:0.511173 +2 1:0.849699 2:0.412826 3:0.72905 +2 1:0.671343 2:0.0701403 3:0.0027933 +2 1:0.835671 2:0.44489 3:0.851955 +2 1:0.402806 2:0.228457 3:0.430168 +1 1:0.270541 2:0.765531 3:0.128492 +2 1:0.152305 2:0.376754 3:0.594972 +1 1:0.134269 2:0.673347 3:0.544693 +2 1:0.673347 2:0.705411 3:0.620112 +2 1:0.12024 2:0.172345 3:0.156425 +2 1:0.609218 2:0.727455 3:0.921788 +2 1:0.386774 2:0.252505 3:0.0586592 +1 1:0.214429 2:0.935872 3:0.46648 +2 1:0.59519 2:0.228457 3:0.377095 +2 1:0.655311 2:0.807615 3:0.402235 +1 1:0.300601 2:0.577154 3:0.583799 +2 1:0.140281 2:0.308617 3:0.198324 +2 1:0.735471 2:0.0781563 3:0.924581 +2 1:0.805611 2:0.855711 3:0.578212 +2 1:0.665331 2:0.601202 3:0.636872 +2 1:0.46493 2:0.148297 3:0.346369 +2 1:0.609218 2:0.709419 3:0.164804 +2 1:0.284569 2:0.238477 3:0.27095 +2 1:0.527054 2:0.372745 3:0.472067 +2 1:0.470942 2:0.312625 3:0.0391061 +2 1:0.765531 2:0.310621 +2 1:0.9499 2:0.743487 3:0.905028 +2 1:0.549098 2:0.142285 3:0.444134 +2 1:0.837675 2:0.346693 3:0.0586592 +2 1:0.356713 2:0.0440882 3:0.162011 +2 1:0.557114 2:0.0320641 3:0.0726257 +2 1:0.961924 2:0.202405 3:0.50838 +1 1:0.921844 2:0.00400802 3:0.217877 +2 1:0.531062 2:0.346693 3:0.117318 +1 1:0.44489 2:0.93988 3:0.0865922 +2 1:0.306613 2:0.51503 3:0.673184 +2 1:0.801603 2:0.0180361 3:0.642458 +2 1:0.412826 2:0.144289 3:0.698324 +1 1:0.184369 2:0.511022 3:0.675978 +2 1:0.717435 2:0.392786 3:0.145251 +2 1:0.945892 2:0.739479 3:0.25419 +2 1:0.112224 2:0.222445 3:0.807263 +1 1:0.326653 2:0.587174 3:0.206704 +2 1:0.697395 2:0.140281 3:0.0307263 +2 1:0.645291 2:0.478958 3:0.952514 +2 1:0.563126 2:0.0220441 3:0.354749 +1 1:0.224449 2:0.52505 3:0.902235 +1 1:0.252505 2:0.599198 3:0.321229 +2 1:0.422846 2:0.0601202 3:0.558659 +2 1:0.735471 2:0.741483 3:0.634078 +2 1:0.677355 2:0.160321 3:0.0307263 +2 1:0.973948 2:0.701403 3:0.0782123 +1 1:1 2:0.214429 3:0.0558659 +1 1:0.0681363 2:0.569138 3:0.48324 +2 1:0.837675 2:0.0801603 3:0.77095 +1 1:0.288577 2:0.787575 3:0.393855 +2 1:0.789579 2:0.388778 3:0.134078 +2 1:0.336673 2:0.12024 3:0.603352 +1 1:0.0761523 2:0.907816 3:0.251397 +1 1:0.104208 2:0.767535 3:0.184358 +2 1:0.128257 2:0.258517 3:0.363128 +2 1:0.541082 2:0.0541082 3:0.860335 +1 1:0.0801603 2:0.853707 3:0.335196 +1 1:0.00801603 2:0.941884 3:0.25419 +2 1:0.911824 2:0.911824 3:0.977654 +2 1:0.0340681 2:0.579158 3:0.0642458 +1 1:0.314629 2:0.845691 3:0.765363 +2 1:0.158317 2:0.422846 3:0.846369 +2 1:0.478958 2:0.228457 3:0.768156 +2 1:0.863727 2:0.835671 3:0.446927 +2 1:0.695391 2:0.817635 3:0.427374 +2 1:0.478958 2:0.865731 3:0.385475 +2 1:0.182365 2:0.45491 3:0.863128 +2 1:0.54509 2:0.196393 3:0.583799 +2 1:0.777555 2:0.50501 3:0.851955 +2 1:0.777555 2:0.248497 3:0.198324 +2 1:0.883768 2:0.438878 3:0.449721 +2 1:0.380762 2:0.496994 3:0.416201 +2 1:0.621242 2:0.226453 3:0.765363 +2 1:0.591182 2:0.0240481 3:0.26257 +1 1:0.0981964 2:0.897796 3:0.170391 +1 1:0.214429 2:0.619238 3:0.843575 +1 1:0.250501 2:0.775551 3:0.0726257 +2 1:0.0741483 2:0.274549 3:0.0167598 +2 1:0.883768 2:0.561122 3:0.717877 +2 1:0.531062 2:0.284569 3:0.868715 +2 1:0.440882 2:0.122244 3:0.73743 +1 1:0.376754 2:0.623246 3:0.407821 +2 1:0.769539 2:0.88978 3:0.854749 +1 1:0.340681 2:0.829659 3:0.290503 +2 1:0.388778 2:0.432866 3:0.986034 +2 1:0.184369 2:0.174349 3:0.00837989 +2 1:0.366733 2:0.358717 3:0.698324 +2 1:0.775551 2:0.356713 3:0.575419 +2 1:0.753507 2:0.709419 3:0.628492 +2 1:0.452906 2:0.408818 3:0.446927 +2 1:0.589178 2:0.973948 3:0.0642458 +1 1:0.388778 2:0.937876 3:0.932961 +2 1:0.707415 2:0.292585 3:0.463687 +1 1:0.136273 2:0.807615 3:0.72905 +2 1:0.897796 2:0.498998 3:0.047486 +2 1:0.537074 2:0.893788 3:0.815642 +2 1:0.735471 2:0.789579 3:0.480447 +2 1:0.785571 2:0.759519 3:0.793296 +2 1:0.693387 2:0.252505 3:0.120112 +2 1:0.597194 2:0.322645 3:0.108939 +2 1:0.466934 2:0.0681363 3:0.687151 +2 1:0.921844 2:0.388778 3:0.513966 +2 1:0.933868 2:0.619238 3:0.480447 +1 1:0.248497 2:0.837675 3:0.265363 +1 1:0.282565 2:0.591182 3:0.145251 +2 1:0.537074 2:0.194389 3:0.231844 +2 1:0.148297 2:0.254509 3:0.994413 +2 1:0.392786 2:0.374749 3:0.0195531 +1 2:0.617234 3:0.715084 +1 1:0.290581 2:0.933868 3:0.0614525 +1 1:0.0941884 2:0.983968 3:0.469274 +2 1:0.114228 2:0.442886 3:0.709497 +2 1:0.529058 2:0.90982 3:0.625698 +2 1:0.0521042 2:0.352705 3:0.893855 +2 1:0.517034 2:0.771543 3:0.712291 +1 1:0.142285 2:0.809619 3:0.759777 +2 1:0.987976 2:0.533066 3:0.555866 +2 1:0.95992 2:0.338677 3:0.187151 +2 1:0.695391 2:0.416834 3:0.100559 +2 1:0.376754 2:0.521042 3:0.282123 +2 1:0.659319 2:0.511022 3:0.798883 +2 1:0.308617 2:0.0501002 3:0.76257 diff --git a/robocode-svm b/robocode-svm index 1824f23..932df73 100755 --- a/robocode-svm +++ b/robocode-svm @@ -1,13 +1,14 @@ #!/usr/bin/env bash -set -x +#set -x # File locations datadir="./data" -results="$datadir/battle.data" +battles="$datadir/battle.data" settings="$datadir/settings.last.battle" -training="$datadir/training.scale.data" -testing="$datadir/testing.scale.data" +results="$datadir/results.last.data" +training="$datadir/training.scale" +testing="$datadir/testing.scale" model="$datadir/model.data" output="$datadir/output.data" @@ -35,21 +36,23 @@ show_help() { } # Run the battle wit the specified parameters +# @param gui --gui|--no-gui # @param x the position of the roaming robot on x-axis # @param y the position of the roaming robot on y-axis # @param alpha the orientation of the gun of the roaming robot (OPTIONAL) run_battle() { # The x and y parameters are required integers - if [[ $1 =~ ^-?[0-9]+$ ]] && [[ $2 =~ ^-?[0-9]+$ ]] ; then + regexint='^-?[0-9]+$' + if ! [[ $2 =~ $regexint && $3 =~ $regexint ]] ; then echo "The coordinates of the starting robot must be numeric!" exit fi # The alpha parameter is optional - if [[ -z $3 ]] ; then + if [[ -z $4 ]] ; then alpha=0 else - alpha=$3 + alpha=$4 fi { # Write current settings to a file; first robot starts in the middle, othwe one roaming @@ -60,21 +63,30 @@ run_battle() { echo "robocode.battle.gunCoolingRate=0.07" echo "robocode.battle.rules.inactivityTime=450" echo "robocode.battle.selectedRobots=$robot1,$robot2" - echo "robocode.battle.initialPositions=($((width/2)),$((height/2)),0),($1,$2,$alpha)" + echo "robocode.battle.initialPositions=($((width/2)),$((height/2)),0),($2,$3,$alpha)" } > "$settings" - # Run battle without GUI, following the settings file, and returning the winner - robocode -battle "$(pwd)/$settings" | tail -2 | awk 'NR==1F {print $2}' + # Transform the gui parameter to format digestable by robocode cmd + if [[ $1 == "--no-gui" ]] ; then + gui="-nodisplay" + else + printf "The winner is: " + fi + +# Run battle without GUI, following the settings file, save the results into file + robocode "$gui" -battle "$(pwd)/$settings" -results "$(pwd)/$results" > /dev/null + # Obtain the winner from the results file + cat "$results" | tail -2 | awk 'NR==1F {print $2}' } # Generate the missing amount of data from running battles generate_data() { # Prepare the data directory mkdir -p "$datadir/" - touch "$results" + touch "$battles" # If the data file has required amount if data - lines=$(wc -l < "$results") + lines=$(wc -l < "$battles") if [[ "$lines" -lt "$rounds" ]] ; then # Repeat the battle desired number of times (till the battle data file does not contain $rounds entries echo "Generating the data for SVM predition. Depending on the machine, this may take very long time." @@ -85,7 +97,7 @@ generate_data() { number=$RANDOM; let "number %= $height"; y=$number number=$RANDOM; let "number %= 360"; alpha=$number - winner=$(run_battle "$x" "$y" "$alpha") + winner=$(run_battle --no-gui "$x" "$y" "$alpha") if [[ "$winner" == "$robot1" ]] ; then winner=1 else @@ -93,14 +105,14 @@ generate_data() { fi # Append the result of the battle to the battle data file - echo "$winner 1:$x 2:$y 3:$alpha" >> "$results" + echo "$winner 1:$x 2:$y 3:$alpha" >> "$battles" # Print a dot to infrom user tht something is happening printf "." done - printf "\nData generation has been successful.\n\n" + printf "\nData generation has been successful.\n" else # This does not happen when called by accuracy - if [[ "$1" == "verbose" ]] ; then + if [[ "$1" == "--verbose" ]] ; then echo "Data have already been generated. Show accuracy or run the battle." fi fi @@ -116,9 +128,9 @@ show_accuracy() { tr=$(bc <<< "scale=0; ($rounds * 0.9) / 1"); te=$(bc <<< "scale=0; ($rounds - $tr) / 1"); - # Scale the results to interval <0, 1> and split them to training set and testing set; + # Scale the battles to interval <0, 1> and split them to training set and testing set; # misuse tee for 'process substituion' and send its stdout do /dev/null - svm-scale -l 0 -u 1 "$results" | tee >(head -n "$tr" > "$training") >(tail -n "$te" > "$testing") > /dev/null + svm-scale -l 0 -u 1 "$battles" | tee >(head -n "$tr" > "$training") >(tail -n "$te" > "$testing") > /dev/null # Train the SVM with the training data svm-train -c 10 -g 2 "$training" "$model" > /dev/null # Check the accuracy of the testing data against the SVM model made of training data @@ -130,7 +142,7 @@ show_accuracy() { while :; do case $1 in -g|--generate) - generate_data verbose + generate_data --verbose exit ;; -a|--accuracy) @@ -138,7 +150,7 @@ while :; do exit ;; -b|--battle) - run_battle "$2" "$3" "$4" + run_battle --gui "$2" "$3" "$4" exit ;; -c|--clean)