commit 58693ebe0207726a30d24f50f222548bc44d1f82 Author: Giovanni-Josserand Date: Sun Sep 14 12:33:51 2025 +0200 putting the project on git diff --git a/LOTAstats.csv b/LOTAstats.csv new file mode 100644 index 0000000..d0dfc49 --- /dev/null +++ b/LOTAstats.csv @@ -0,0 +1,1001 @@ +classe,frags,dist,death,powerup +bon,78,4.272425271865618,42,65 +moyen,30,6.600273390350095,49,46 +mauvais,26,5.5638559726422265,59,31 +moyen,34,3.0898554577415274,32,61 +moyen,30,7.4586143596242405,31,45 +moyen,39,6.341907367886682,70,41 +moyen,45,2.4760304129684503,64,47 +bon,88,5.208312635614895,36,60 +unicum,70,6.742021380553322,37,67 +tomato,12,2.49864347567027,44,58 +bon,57,5.795061252435695,34,78 +tomato,29,2.38749322465523,67,67 +moyen,38,5.125577593626353,66,40 +tomato,11,1.7545282927626558,69,63 +bon,74,5.993556720526735,38,50 +unicum,73,6.947757782875366,52,78 +moyen,43,4.9423702477654,37,48 +tomato,25,1.4819434024796423,50,62 +bon,88,4.586298372799412,25,57 +moyen,41,3.053367882411556,54,75 +moyen,50,3.639429107506952,31,71 +moyen,47,5.6378367408198455,40,56 +mauvais,24,5.545883937943859,67,62 +tomato,19,2.302597416948087,45,79 +tomato,28,1.2927262013083325,45,66 +tomato,18,2.5483513721605693,72,67 +tomato,24,2.698213308645856,73,61 +bon,57,5.271622680433357,27,45 +bon,69,5.0590994173630754,36,38 +moyen,55,2.607724481249621,36,45 +mauvais,25,3.532953780354092,50,74 +moyen,53,4.941289866810837,35,61 +tomato,17,1.0973070849942654,62,78 +bon,84,3.081541700758254,41,48 +tomato,16,1.760736962484632,43,58 +bon,69,3.514235722869329,26,69 +bon,59,3.456484753525543,31,45 +mauvais,25,3.064755646532228,46,43 +mauvais,23,4.864500862549349,44,70 +bon,60,3.2871579659265393,38,24 +tomato,28,2.1407043023635315,71,80 +bon,84,5.183690675259257,38,57 +bon,80,3.114540748049433,26,59 +mauvais,24,3.331390225089607,40,34 +moyen,40,6.242826254751755,33,80 +bon,90,3.093527140436238,41,37 +moyen,46,5.052253500635403,48,60 +bon,67,4.2146003664911245,43,78 +tomato,11,1.1442404058106146,43,53 +unicum,86,7.607910375312697,47,36 +unicum,94,8.557785662237738,33,55 +moyen,43,3.0817547424268477,39,65 +mauvais,27,4.825145830065626,59,78 +unicum,85,8.968634514791924,50,23 +bon,83,5.324615467803053,45,65 +tomato,15,1.5627090930611363,57,77 +bon,64,3.6303058171183364,30,29 +moyen,31,4.587671695885532,30,50 +bon,87,4.8181066778964725,34,40 +tomato,26,1.8964870299037058,48,79 +mauvais,30,4.242146581795054,67,32 +unicum,76,8.023096433232865,60,66 +mauvais,25,4.989318656001409,73,67 +moyen,53,7.771405031349168,66,58 +mauvais,27,4.323412901304466,61,55 +tomato,30,1.2414701070998935,42,78 +tomato,10,1.3593366830957934,46,77 +unicum,90,8.91178038682797,54,63 +bon,75,3.2605854773769174,35,35 +mauvais,25,4.788762906199231,50,74 +moyen,37,5.225238496043383,60,66 +bon,61,3.6446947727674246,38,23 +moyen,35,7.294060653563003,58,80 +moyen,38,6.327685265138829,62,60 +bon,67,5.235773363739236,41,42 +bon,85,3.8420195637304024,29,65 +unicum,81,9.580972318420644,38,80 +moyen,37,6.679910152163159,33,80 +bon,78,4.881454114697814,27,62 +mauvais,26,3.8092561445301243,56,48 +bon,74,5.673741838459947,35,46 +bon,67,3.476048604348034,30,28 +bon,84,4.223679156203815,34,35 +tomato,30,2.00639460795524,70,68 +mauvais,28,4.507464702281734,72,33 +mauvais,23,3.269318207122996,65,39 +tomato,19,2.5342369942435696,79,64 +bon,82,5.144942584008003,32,71 +bon,82,5.720296052254618,42,71 +bon,79,3.832833672001006,28,32 +unicum,96,8.999668872853515,49,59 +bon,79,3.8747232413849897,25,30 +tomato,17,2.9262884380392733,44,66 +bon,87,5.058134397513112,42,47 +mauvais,22,3.935407475201388,50,43 +moyen,31,2.613681040338579,67,72 +moyen,41,7.411626693689675,38,49 +mauvais,28,4.790205298395107,52,36 +moyen,36,4.676683807088595,56,52 +mauvais,21,4.26056594762359,45,77 +bon,87,4.951139296321313,35,64 +moyen,35,7.617861951956428,43,54 +tomato,15,2.4786696213877892,58,55 +moyen,48,2.4193036157249086,31,68 +moyen,53,3.672374570862699,30,45 +moyen,49,4.484105539211998,57,49 +moyen,42,2.022047063309607,34,47 +moyen,38,4.907744063349774,43,48 +bon,73,3.552275486220073,28,36 +bon,85,4.4209905665886176,29,38 +tomato,27,2.115205937381269,74,73 +bon,88,3.2688851365029126,27,23 +mauvais,27,3.1244983282915695,59,53 +moyen,45,5.322042805559383,52,47 +unicum,82,8.291096055596011,47,47 +unicum,89,9.708524987021587,41,46 +mauvais,30,4.955305778631575,49,58 +mauvais,27,5.725360536865487,57,52 +tomato,11,2.8631469067360564,77,61 +mauvais,21,5.2934682728119995,47,57 +moyen,38,4.144208709317627,49,47 +mauvais,26,3.8481638058672503,47,28 +moyen,50,6.347073927050067,66,69 +bon,56,5.8996227542517286,40,57 +tomato,25,2.438753570694889,66,51 +moyen,31,2.827340683281939,43,67 +bon,56,4.642118211071923,26,30 +unicum,82,9.321845713734342,36,48 +moyen,41,4.038421601113862,49,60 +tomato,19,2.827540391308526,60,78 +moyen,34,2.6701849551916306,60,79 +unicum,79,6.460446429668213,51,77 +moyen,33,4.802547477557759,30,75 +bon,76,4.385176843783219,36,30 +bon,84,4.325893819194688,39,51 +moyen,44,2.600870712860127,49,67 +bon,80,3.6227807028942705,40,58 +moyen,45,3.7728873057124304,31,70 +mauvais,27,5.585928386564289,53,32 +moyen,30,7.490254796094979,65,67 +bon,75,5.2429745336672635,36,63 +bon,64,4.663878671725279,25,34 +unicum,78,8.069105348354963,55,42 +unicum,93,9.550884748109484,39,68 +tomato,12,2.1383127770644084,74,73 +mauvais,29,5.577803805443409,42,38 +bon,74,5.438455323301425,34,80 +tomato,29,2.5438924295808194,70,68 +mauvais,20,3.272898127194294,46,75 +bon,67,3.962667696930965,38,56 +mauvais,23,5.883797484652136,58,30 +moyen,46,7.2257457511068655,68,46 +mauvais,30,5.3516887975955285,67,29 +moyen,34,6.238818026489201,64,53 +moyen,37,6.01487073395442,32,61 +moyen,38,2.3505484492724493,38,67 +bon,55,4.002971104796812,42,66 +bon,77,4.2908161925058605,33,26 +mauvais,28,5.9096321579486,55,21 +moyen,48,3.9212641357299702,40,53 +moyen,54,4.707121501602173,44,51 +tomato,23,1.5886809477235064,69,77 +moyen,43,2.0787003670907365,53,70 +tomato,11,1.4098399308020635,52,69 +moyen,40,5.4327514267564485,58,72 +bon,61,5.2936595775320825,34,60 +moyen,54,4.0947414256406836,70,73 +bon,72,3.1951867268428393,41,59 +tomato,29,2.577099994464415,59,61 +mauvais,25,5.132104463702643,49,64 +mauvais,27,3.430448256619424,65,28 +unicum,99,8.70726319019644,58,68 +moyen,34,5.300917967903244,44,51 +mauvais,29,5.770053126009746,41,49 +bon,63,5.051367827744908,41,76 +bon,68,3.8349257070928386,42,59 +mauvais,20,5.494884933150383,48,28 +unicum,83,6.216836631828093,31,27 +bon,62,3.440821143822845,33,79 +tomato,12,1.597659315080979,68,52 +moyen,47,3.5900297106535266,48,62 +mauvais,20,3.412861060197098,61,42 +bon,56,5.431816187951729,45,25 +unicum,87,7.364558588649892,33,36 +moyen,30,5.055632745055901,62,59 +mauvais,24,3.986385625369216,69,37 +moyen,37,2.0575714907940705,58,45 +mauvais,22,5.517670967968691,48,43 +moyen,51,7.905248728071716,31,61 +bon,69,3.521717466615447,42,20 +tomato,11,1.919926470643635,76,69 +mauvais,24,3.3672916989918003,68,75 +tomato,21,1.5584448298078892,63,51 +mauvais,26,5.633096316144623,41,45 +tomato,26,2.483064142105342,56,55 +mauvais,24,4.9242131440472034,63,69 +moyen,42,4.468325209731597,58,60 +mauvais,20,4.910833059552381,47,31 +moyen,52,6.578496807734345,59,60 +tomato,17,2.512337435361368,55,74 +mauvais,20,5.121363731906862,52,77 +mauvais,23,4.910815306959613,69,49 +bon,65,4.051404098455336,29,74 +mauvais,27,4.060360627423869,62,65 +moyen,31,6.599932911111051,40,53 +tomato,23,2.5944831325829454,54,55 +moyen,34,3.4758633203478526,70,71 +unicum,81,9.44660368717808,46,55 +bon,72,5.366157762823386,44,80 +mauvais,25,3.798972515575783,64,52 +bon,72,3.9238263145350376,38,75 +tomato,11,1.6787011909035374,78,78 +moyen,44,3.546011278612019,68,45 +mauvais,29,5.205318030426332,66,70 +moyen,54,5.515078283540986,40,80 +tomato,29,2.1376661118423304,52,64 +tomato,12,2.963987252151711,61,53 +tomato,17,1.5468819541762375,69,75 +bon,88,5.380078458728618,39,32 +bon,82,5.138478446674853,44,39 +moyen,32,2.356389409000645,49,61 +tomato,22,1.4705871080269626,74,70 +moyen,31,6.118390406161032,30,51 +mauvais,22,4.116698742795544,65,29 +bon,58,5.700853872784307,40,50 +mauvais,27,4.551699309761702,49,32 +bon,72,3.520303833345317,30,29 +moyen,36,6.247480825311184,46,60 +moyen,52,6.539710589336775,60,60 +bon,85,5.479481560409345,33,29 +tomato,29,2.459132836076839,68,61 +bon,89,4.270534484946671,26,33 +bon,59,5.636301051960637,38,43 +mauvais,30,5.152853328177835,75,47 +mauvais,23,4.60714242850727,70,39 +tomato,13,2.858379139006508,75,72 +tomato,26,1.8251015610516874,80,59 +moyen,47,4.386240126494158,58,74 +moyen,44,3.2251803055231294,47,40 +bon,84,5.851098186462185,39,23 +moyen,54,6.640202834718531,38,62 +bon,86,4.2938467614872335,35,45 +bon,71,3.775654008240596,32,59 +moyen,32,2.8762099312356444,30,53 +moyen,33,4.718781362628805,45,70 +bon,59,5.00619139047018,36,61 +bon,73,3.2476707061353403,39,76 +mauvais,24,4.654131202531495,54,46 +moyen,45,5.535463059632397,50,79 +unicum,87,8.269037970509812,48,52 +moyen,54,2.5122526090009867,70,52 +moyen,52,4.194536254714842,66,66 +bon,58,3.629491234099057,44,55 +bon,56,4.904488842037746,41,68 +tomato,19,2.9521248245058835,61,61 +unicum,84,9.509690965453567,30,41 +moyen,40,6.343613216592124,63,77 +moyen,34,6.0367722321994846,35,64 +unicum,97,8.87534439898976,56,50 +moyen,38,7.3907874372253355,58,48 +unicum,79,9.687160370671847,39,48 +tomato,29,1.8202069799172773,58,80 +mauvais,24,5.365792270671606,73,43 +bon,77,3.4735098552532544,43,20 +mauvais,20,5.787488169899306,60,80 +bon,85,4.387196723378161,37,77 +tomato,24,1.1299116144625478,51,71 +tomato,28,1.1104899405564421,59,61 +bon,58,4.397024049929357,31,31 +moyen,30,5.74313763370688,68,58 +unicum,88,7.9331006894474925,48,21 +bon,59,4.336260096388315,36,62 +bon,70,3.0613587245221794,39,48 +bon,76,5.946417933704593,27,62 +mauvais,20,5.908986865055372,73,73 +bon,75,3.1793768787936187,41,68 +bon,58,5.515032300829979,30,62 +tomato,20,1.032340511129926,75,73 +bon,60,4.237168130068187,31,32 +unicum,73,6.409480350433165,48,57 +moyen,38,6.713048969068574,46,54 +bon,57,3.479063083465464,36,24 +unicum,75,7.775008937395874,48,55 +bon,57,4.358380902324777,41,43 +moyen,37,6.770624847769855,62,42 +moyen,32,3.0067821777894945,45,43 +tomato,22,1.7620884642225578,41,52 +tomato,15,2.426518745484895,45,72 +tomato,11,1.9806601640587898,77,55 +bon,68,3.7056107975570756,40,28 +moyen,42,3.8799351750202975,40,41 +tomato,20,2.3746204300918485,41,76 +moyen,36,5.06116617896317,32,46 +tomato,10,2.6592177148906826,68,55 +tomato,25,2.7272815245074193,73,54 +mauvais,22,3.7281142839750157,57,32 +mauvais,27,4.766057697740594,63,31 +bon,61,3.9071146878735883,40,45 +bon,76,5.561405232395808,36,28 +moyen,48,3.0965674418332396,44,50 +tomato,11,1.1997874344409913,53,68 +mauvais,26,5.484165364442779,64,49 +moyen,37,6.433518108321357,41,70 +mauvais,23,5.986851906993025,72,56 +tomato,17,1.2361621285373394,59,64 +tomato,12,1.2587428696062626,60,59 +bon,58,4.276438248561874,37,45 +mauvais,22,3.9786466817605066,59,52 +moyen,37,5.495135750431318,55,42 +moyen,38,3.3140942740200936,32,65 +mauvais,20,3.275578539536061,71,48 +tomato,22,2.5472314195421957,64,52 +mauvais,29,4.468316505585888,64,52 +mauvais,23,5.440581022176134,40,60 +mauvais,28,4.005363080426696,51,46 +mauvais,26,4.922572799412185,75,43 +bon,85,5.0101598489590895,43,60 +mauvais,23,5.875774685622491,73,60 +tomato,23,1.9258910683780923,80,74 +bon,59,5.626965002674314,33,20 +tomato,22,2.906849161066674,77,75 +mauvais,20,4.603969352438258,70,62 +moyen,49,7.908403748484314,57,48 +moyen,36,2.429566390785785,59,79 +moyen,54,7.2424958623627935,68,40 +bon,60,5.03345219243199,44,52 +unicum,77,8.287124155313371,58,70 +mauvais,30,5.836793367227193,73,39 +unicum,100,7.544894270591605,42,20 +tomato,11,2.964606697462092,62,59 +mauvais,28,5.97260312152989,72,33 +mauvais,21,5.67236524430003,46,20 +bon,90,3.9874393123212357,37,20 +moyen,50,2.9568096068421568,32,47 +bon,81,5.282002799787933,27,69 +moyen,51,6.962308142592036,45,50 +moyen,52,4.793457888462923,43,52 +moyen,35,2.4082343119083442,59,42 +bon,78,4.860788019295001,27,54 +tomato,18,1.1619607132038017,70,69 +moyen,38,5.553443177592531,39,56 +unicum,98,7.741086004443553,37,71 +mauvais,26,4.736141356288963,60,29 +bon,70,5.863361874302754,39,30 +moyen,51,4.604309973771582,50,51 +tomato,19,2.24282657718127,71,61 +bon,82,5.508068374673373,41,47 +tomato,19,1.701083769912224,80,62 +mauvais,20,5.359841176025939,66,55 +bon,82,5.158952448817534,32,43 +unicum,79,9.944364979443977,46,45 +mauvais,20,4.411927141212233,55,27 +bon,69,5.628803760114733,42,80 +moyen,32,6.237986895085333,65,59 +tomato,30,2.1265779893112784,42,52 +moyen,35,4.144318880632517,69,63 +bon,87,4.987064968964303,27,25 +bon,80,5.31027687179811,26,42 +moyen,53,3.6139450450298165,40,79 +moyen,34,3.455040911138839,58,69 +unicum,74,6.259682510019903,39,32 +mauvais,21,5.805294880591039,68,30 +unicum,95,7.2902987211709736,54,48 +moyen,32,3.535169111699576,54,40 +tomato,29,2.7123877918611043,79,73 +mauvais,27,4.115935895922765,52,21 +unicum,100,6.699247867462796,43,59 +moyen,43,4.539966209307331,68,53 +moyen,40,5.500733105085481,36,42 +moyen,34,7.29541267910707,65,42 +mauvais,26,3.596254761667425,75,52 +bon,70,3.468499321439475,43,27 +unicum,94,6.94943579377778,36,23 +unicum,92,9.034001762092064,53,53 +tomato,22,2.183105052554269,64,76 +moyen,48,7.212847974907066,61,59 +unicum,87,8.722023076533235,30,59 +moyen,47,3.5146317699894407,40,72 +unicum,77,6.424320865809618,60,40 +moyen,47,7.743606829445358,56,52 +mauvais,24,3.1092990327263186,62,54 +mauvais,28,3.9246598233999723,47,37 +bon,74,5.730256748146007,43,72 +tomato,29,2.33995659672261,55,74 +unicum,84,8.835424182719745,47,51 +bon,64,3.026810959725508,30,35 +unicum,82,9.852846045983892,32,24 +mauvais,22,5.424198603879068,44,59 +mauvais,25,5.258110961008113,51,80 +unicum,100,8.920136533655532,45,77 +bon,58,3.1750082144941403,39,73 +unicum,70,8.538070750888961,46,33 +bon,78,4.646640019847236,31,72 +moyen,35,3.5325477431924925,48,49 +bon,90,5.620075836268508,34,68 +bon,74,5.384035617226024,45,60 +bon,87,5.554475524574142,32,64 +tomato,16,2.470352064661281,57,73 +bon,87,4.982753813259526,43,65 +moyen,39,2.449238191478268,63,48 +mauvais,21,5.142477121191636,58,36 +moyen,44,7.10446743382907,57,41 +bon,77,4.52012069019673,34,46 +moyen,36,5.583408386991973,34,51 +moyen,49,6.928192223228049,36,70 +bon,75,5.514886287409804,42,23 +moyen,36,6.820656523419356,45,42 +moyen,33,4.7638181734516305,67,48 +mauvais,28,5.916262542100004,51,26 +tomato,26,1.190312176418227,66,75 +mauvais,26,5.265736429168024,45,74 +mauvais,28,3.4325558236153597,72,66 +bon,62,3.3113982047354553,41,27 +tomato,11,2.509980486442263,62,67 +mauvais,29,5.265443471926188,46,37 +mauvais,27,3.6841329941185563,64,69 +bon,59,5.513970633633307,28,38 +bon,82,3.5863639193155286,40,36 +unicum,83,7.5988090804535915,60,23 +unicum,94,9.476409187036612,44,77 +moyen,40,7.783978686824276,33,47 +bon,74,4.085786857513291,30,52 +bon,56,5.531343286546983,25,25 +bon,62,5.916669172768484,36,77 +bon,77,5.436566641678073,26,47 +bon,70,5.181722817701881,44,66 +moyen,50,6.514601904810967,57,51 +moyen,52,6.119528178814464,62,72 +tomato,11,1.518689190639322,76,61 +moyen,41,3.0565122804385423,53,49 +moyen,52,2.963545925906791,40,78 +moyen,34,7.367862300667215,37,55 +mauvais,24,5.643362243898508,49,62 +moyen,46,7.1416640078187,56,42 +bon,73,3.1627573139245406,39,64 +unicum,97,9.246532238856574,53,67 +tomato,14,1.904473299733343,71,69 +mauvais,23,4.038891828426537,58,42 +unicum,91,9.623941354040472,32,42 +bon,78,5.587071061127876,25,23 +bon,55,5.550624149963058,29,51 +bon,79,4.636514354357789,41,30 +bon,67,4.8570494182343324,35,79 +mauvais,21,3.4524228139350925,61,22 +mauvais,24,5.0904926133264015,71,21 +bon,60,3.049466529153871,36,59 +mauvais,22,3.1781620315796477,75,62 +mauvais,30,3.2620390379916246,72,41 +mauvais,21,4.6252244018590565,70,71 +bon,70,3.9667083677484456,33,59 +mauvais,29,3.1180729874330537,59,28 +tomato,26,2.132987944582391,43,69 +moyen,51,5.65071502242583,56,51 +moyen,52,5.171518567847031,39,76 +bon,67,4.116833466925574,41,21 +bon,86,4.04132957440066,41,24 +moyen,44,7.396151605195151,37,55 +bon,88,4.4885765567662945,36,35 +moyen,46,6.232941796361747,59,58 +mauvais,20,4.9654144266221785,65,50 +moyen,49,7.313448412676933,67,65 +tomato,20,2.4047247760816317,67,61 +bon,56,3.531685316146528,44,61 +moyen,48,5.082725206287659,61,80 +mauvais,24,3.705075438130329,69,66 +moyen,38,5.66374315066959,41,63 +unicum,100,9.862759306486797,31,72 +bon,85,4.605505140207015,26,80 +mauvais,20,5.448992766287276,53,66 +moyen,50,7.730560112671786,56,70 +unicum,80,9.001896550263844,54,54 +moyen,43,5.858110394359143,67,66 +bon,85,3.0857334197305533,45,69 +moyen,48,4.6337623816402775,47,40 +moyen,47,2.655692263335354,40,70 +moyen,51,6.3340956329521765,35,45 +moyen,54,4.481284202637262,46,41 +bon,83,4.9344470207403965,31,68 +mauvais,25,4.664655284455229,42,50 +bon,84,4.531974838440582,31,66 +mauvais,24,3.719088455797636,61,51 +moyen,31,7.844306439338891,48,72 +tomato,29,1.4349853145750875,56,75 +moyen,32,2.0708732757498947,63,59 +mauvais,27,3.516199975408392,42,53 +unicum,70,9.024348284230424,34,74 +unicum,85,9.771068998382452,45,47 +mauvais,22,5.275322343202157,41,50 +mauvais,20,4.573886356857808,54,30 +mauvais,20,5.096564387040616,42,33 +bon,73,4.63318443132945,32,69 +moyen,33,3.7774773238712465,63,46 +unicum,71,8.492909267946153,58,53 +moyen,33,5.965309491800627,31,52 +tomato,30,1.7008476707726368,76,55 +bon,81,5.613662887240528,43,46 +bon,64,5.227438909287157,31,43 +bon,81,5.441337451380329,43,51 +moyen,46,6.1260539543777695,34,42 +bon,90,3.930078977833512,43,68 +mauvais,26,4.732536104065758,48,68 +tomato,19,2.226252898333325,69,65 +unicum,88,9.487073207442823,32,38 +mauvais,20,4.535087444363468,41,53 +mauvais,26,5.200271889694434,71,42 +moyen,41,6.903118492481443,59,64 +unicum,73,7.095607906299927,58,72 +mauvais,21,4.622664390295586,60,26 +bon,80,4.960159342389346,33,51 +bon,68,4.963914119815222,30,59 +moyen,49,6.278280987700097,65,45 +unicum,95,6.9510252853626575,35,42 +mauvais,26,5.063663881926399,62,75 +bon,70,4.058194489077485,42,77 +mauvais,23,5.398953870492549,44,30 +moyen,40,6.5606526312149205,35,47 +moyen,47,2.834846933741942,64,42 +unicum,86,6.611465966998279,58,32 +mauvais,22,5.238649315033921,66,72 +mauvais,21,5.406475347708166,70,63 +bon,71,3.584075152365367,32,49 +moyen,39,7.985267115674432,55,55 +bon,74,5.817366565946548,42,28 +unicum,89,6.843588011491648,42,46 +bon,65,3.652968680685613,42,33 +bon,82,4.9881374631965265,32,54 +bon,58,4.043061665459967,31,46 +unicum,80,8.55045177482577,39,41 +moyen,44,2.1902933358931147,58,44 +tomato,25,2.7450696906875165,48,57 +moyen,45,5.046695793295901,59,74 +moyen,30,7.1332643777509706,44,43 +bon,87,5.882787662013386,39,72 +moyen,50,4.857532034989863,47,42 +moyen,47,7.278774883035763,66,71 +moyen,38,3.21068284024125,32,70 +mauvais,22,3.6529126849867124,74,54 +bon,71,3.593217479158649,36,48 +moyen,51,4.338979674124578,33,41 +moyen,39,7.907797234799371,42,70 +moyen,51,4.229143753448086,33,46 +unicum,89,6.122616230147058,39,23 +moyen,41,3.9749112739507675,60,42 +moyen,55,7.40377037867087,49,46 +bon,68,4.808575308740346,40,53 +moyen,50,7.060761612258188,54,76 +moyen,37,4.563170310333474,56,43 +mauvais,22,4.1074073652882905,59,70 +mauvais,25,4.392664090040526,56,54 +bon,65,3.916241580641629,26,63 +bon,80,4.216860876733525,29,71 +moyen,39,2.951555131585518,54,42 +mauvais,30,3.223549803774007,43,63 +bon,62,3.6613822832930234,35,66 +moyen,48,3.0954580007217123,31,46 +moyen,49,7.653560631233459,35,77 +bon,58,4.36708970098734,43,38 +bon,71,5.097711919310288,36,42 +moyen,46,6.63025391091576,42,61 +mauvais,22,3.7835356043249115,68,52 +mauvais,27,4.344296006574062,57,59 +tomato,15,2.0856410009903112,49,78 +bon,66,3.8883284841915233,25,55 +moyen,46,2.5603403026943394,51,61 +tomato,29,1.0538255424222902,45,70 +moyen,36,7.1730720028509865,36,47 +unicum,82,8.629226868121863,55,67 +bon,76,4.6346723826816465,32,28 +moyen,38,4.356949234822077,45,74 +moyen,33,3.280215808048287,39,79 +moyen,48,4.029836022907453,33,57 +bon,76,3.3470853051691924,43,61 +unicum,97,6.343099359282965,39,20 +moyen,36,5.507638709117529,54,62 +bon,84,3.605120000819513,25,54 +moyen,43,5.106865098020058,33,72 +tomato,19,1.8110688228151446,58,61 +mauvais,22,3.9994256677911206,74,64 +bon,87,4.82364703974546,44,74 +bon,85,5.936959001253479,27,61 +unicum,92,8.833048241421167,34,67 +mauvais,22,3.567952198269367,58,51 +mauvais,27,3.26395005832204,43,77 +moyen,47,4.315756523151672,57,49 +tomato,12,1.5598222620320572,58,66 +bon,78,5.7384821277154145,39,70 +moyen,37,2.3123393629903135,63,70 +bon,57,5.924408024021257,37,34 +tomato,21,1.2143711074457126,62,53 +tomato,27,2.539732632957312,73,58 +mauvais,20,3.750414247812806,52,33 +unicum,97,7.993032110526267,33,46 +mauvais,30,3.118329934771734,58,37 +tomato,13,2.861258588421059,66,56 +mauvais,29,5.430821549952336,55,42 +moyen,43,2.319556093612137,58,41 +mauvais,28,5.5317381418451905,74,70 +moyen,43,3.157055735147274,43,65 +bon,57,5.004225077768966,25,50 +tomato,28,2.2490514730049904,44,71 +moyen,52,7.303102734670027,54,61 +moyen,55,2.043100710944763,64,67 +moyen,49,6.523061562929766,47,48 +moyen,43,6.751787577748969,70,51 +moyen,41,6.085802631295707,46,52 +mauvais,23,5.254082842200838,52,20 +tomato,28,1.1727363595856741,80,66 +tomato,24,2.6149729387260043,49,50 +unicum,80,8.647047451624154,55,71 +moyen,55,3.809006912408686,42,62 +tomato,16,2.2134847021877992,76,78 +moyen,31,6.049509026040629,38,49 +moyen,36,6.869932647827831,54,62 +moyen,30,7.538322058411668,42,53 +moyen,34,4.083212409158503,53,79 +moyen,46,5.4687111920856895,58,59 +unicum,90,7.590561180166473,50,33 +tomato,17,2.169002723531636,69,78 +moyen,40,5.065109730620895,55,64 +moyen,46,6.060969175633733,69,66 +bon,65,4.279409191801337,41,76 +moyen,42,5.852689606541155,59,45 +tomato,16,1.8659370795984083,40,80 +moyen,50,4.7027757398401295,63,57 +bon,80,4.388360138962668,42,76 +unicum,94,8.581478916253236,31,52 +bon,60,4.4094334777429385,27,22 +tomato,23,1.4310444868219354,68,56 +moyen,55,7.059693531723941,55,69 +moyen,50,6.8039719061714745,52,62 +moyen,50,4.577942148140391,46,49 +moyen,37,5.15442417472312,35,52 +tomato,15,1.1283147714679325,40,78 +moyen,47,6.461040674351457,35,59 +moyen,43,2.2823973420442796,56,48 +tomato,30,1.0020962199094152,45,61 +tomato,17,1.6396574676007254,63,72 +bon,76,4.4871761775615635,41,55 +mauvais,22,4.40694701191557,45,57 +mauvais,21,3.624286282242293,61,27 +moyen,38,7.3224784577824575,60,41 +bon,61,5.903588352292749,29,76 +bon,68,3.2548786780097236,35,55 +unicum,96,7.636398173812859,51,80 +bon,66,3.616949557230526,26,52 +mauvais,23,4.622383541150869,69,50 +bon,87,5.33996500543137,36,71 +bon,77,4.658637754869841,38,50 +bon,81,4.402674805286669,27,66 +unicum,78,6.596538920006809,34,50 +moyen,43,7.484706898498622,65,54 +bon,80,4.521385990220352,45,80 +tomato,10,2.864942432478904,76,77 +moyen,54,5.488665583456687,40,45 +bon,82,4.437126892022289,37,69 +bon,59,4.302344142808116,45,61 +moyen,33,3.7663036595242287,41,40 +moyen,45,4.695821758097143,60,73 +mauvais,27,5.3528773938755165,71,48 +moyen,34,5.941499687107896,58,45 +unicum,84,9.221104912161858,56,31 +unicum,92,8.017575798845034,54,71 +mauvais,28,5.485684905438248,68,46 +bon,60,3.789559307217795,42,70 +mauvais,21,3.7030626910819486,62,79 +bon,70,5.304324143306637,34,56 +tomato,24,2.735772950224792,50,74 +moyen,45,6.515701660121753,52,80 +moyen,36,5.9351855771920246,62,56 +mauvais,22,5.413322956827674,61,78 +unicum,75,8.356267503649324,45,65 +tomato,28,1.2470066480922384,50,59 +moyen,34,6.653358672579607,37,60 +unicum,74,9.926096199813875,56,70 +bon,62,5.689205698735618,30,49 +unicum,97,7.029963442295218,33,73 +tomato,15,2.29278398222373,49,65 +moyen,51,7.043789133493496,50,63 +mauvais,25,5.553686675897736,54,52 +moyen,53,6.5561874636853705,49,70 +moyen,48,6.065236583671048,50,55 +tomato,12,2.2523347828491036,51,70 +tomato,16,2.7516217238966556,70,63 +mauvais,21,3.125655766932536,70,49 +moyen,39,7.30044763208423,47,76 +unicum,86,7.7641601095625274,51,37 +moyen,41,3.8964273032186036,61,73 +bon,71,5.899601777540168,36,38 +bon,73,4.616081663511401,44,63 +bon,88,5.738944878510806,37,36 +moyen,32,3.9903481024219314,49,65 +tomato,11,2.834104186393792,57,58 +bon,72,3.5862159111394076,37,64 +moyen,36,3.718926325917521,45,76 +bon,68,5.7394609464335105,26,50 +tomato,13,2.8801046578374656,65,58 +moyen,33,4.042418291078325,31,47 +bon,83,5.139643454451251,38,39 +moyen,40,3.4097854789132747,62,53 +tomato,12,2.8532314046707157,55,76 +moyen,49,3.612229013937835,42,58 +tomato,27,1.298419244837859,76,77 +moyen,31,7.343354527866946,61,62 +unicum,77,7.020479929143226,48,78 +moyen,40,3.225188649806011,69,61 +tomato,27,1.0719154935536879,50,76 +bon,65,3.081240477005827,34,79 +mauvais,20,4.325877878753635,67,62 +tomato,21,2.3702312967706733,62,76 +unicum,89,7.884453355356746,55,67 +tomato,11,1.562134817479772,47,59 +bon,81,3.7202462733024313,28,61 +mauvais,27,4.083110637505251,41,66 +mauvais,25,3.6852021176827354,40,69 +moyen,50,3.2774598629714022,65,50 +unicum,80,7.282915137324168,31,44 +bon,81,5.7300330490640174,32,79 +mauvais,21,4.983483041831576,55,21 +bon,68,5.713518349720581,35,48 +bon,83,3.677004256818044,33,26 +unicum,77,8.034822786406158,41,24 +bon,67,4.269058367917036,32,39 +mauvais,23,4.886765200706492,69,23 +tomato,30,2.0173227669789506,75,51 +bon,57,4.8387031843961825,39,24 +bon,71,3.8458124212422353,27,20 +moyen,32,2.6988059425107416,54,56 +moyen,31,3.685905979559252,32,70 +moyen,37,7.089478566404923,33,64 +bon,81,5.903992155361097,45,43 +mauvais,29,5.1916051947489885,62,56 +moyen,38,2.960085911173392,49,71 +tomato,14,1.757442166566045,58,79 +bon,67,4.1828256015344305,27,64 +moyen,53,3.6425454684902965,42,47 +unicum,72,7.912309859876938,47,43 +moyen,51,2.464617780277039,70,70 +moyen,41,2.2788993540166005,48,61 +mauvais,25,5.638927120401032,74,65 +bon,84,3.928416164538831,41,62 +tomato,15,2.4437590374819615,47,68 +moyen,44,5.905926373926215,70,51 +mauvais,30,4.070606255038609,54,51 +moyen,54,7.638172616640093,70,42 +mauvais,25,5.927796413989716,50,33 +moyen,45,2.048991282258534,64,50 +moyen,31,5.218981560693787,38,51 +mauvais,26,3.521261781895362,52,52 +tomato,13,1.2854806371755791,73,59 +tomato,28,2.9939180753276524,70,78 +moyen,53,4.689178467108871,33,50 +moyen,54,4.382427300952176,56,60 +tomato,22,1.3652647654105663,68,70 +mauvais,28,3.6252563105426825,64,64 +mauvais,30,4.887716151299433,52,23 +tomato,28,1.721136103995628,71,64 +moyen,50,5.623449106758618,47,40 +mauvais,25,5.380018773450086,51,27 +moyen,30,3.8066417857101227,41,79 +moyen,35,5.546747525082063,70,43 +moyen,47,7.978945370804935,56,46 +moyen,46,7.510845195062856,63,54 +bon,87,5.50132723704677,37,54 +tomato,21,2.7492616043135047,58,67 +mauvais,20,4.275951526248509,58,22 +tomato,25,2.9273892340474683,41,51 +bon,75,5.607117931068624,32,37 +moyen,42,4.967939925359932,45,41 +mauvais,25,4.155321785133779,68,56 +moyen,50,4.452674109737097,49,77 +tomato,18,1.0503431298322718,54,59 +tomato,26,2.280049002172124,53,63 +moyen,33,6.414006628995622,66,40 +bon,74,4.658495504789885,43,37 +moyen,49,4.121680938003175,41,75 +tomato,14,2.4928975161712352,69,63 +mauvais,30,3.583506718521865,40,65 +unicum,86,9.129379817517671,57,32 +moyen,44,7.489440663994819,65,67 +unicum,83,8.259560714061841,56,31 +mauvais,25,3.360618729673115,45,28 +bon,62,3.36312879709466,26,56 +unicum,79,7.647166505908747,51,48 +mauvais,24,4.121852355387499,65,78 +bon,78,4.032279624050759,25,54 +moyen,52,4.137018676995567,35,78 +unicum,76,8.136228068198639,40,79 +bon,81,4.612058193282011,39,26 +tomato,17,2.5706348548231968,40,65 +mauvais,21,5.564421972107311,52,32 +moyen,31,6.182447467418609,43,54 +tomato,23,2.99447247533958,57,60 +tomato,22,2.753845385166314,69,51 +mauvais,29,3.693811104801349,40,24 +mauvais,20,4.161473943581089,41,23 +moyen,30,4.907880203216216,62,55 +moyen,42,3.924370420188946,37,73 +moyen,50,6.87458314117134,59,58 +unicum,73,6.378081579774751,40,38 +mauvais,25,5.038442763181212,47,43 +moyen,39,3.933686645540466,48,73 +unicum,96,6.333420962205546,35,65 +mauvais,22,4.244966083130821,62,48 +tomato,15,2.139148523872237,41,57 +moyen,55,2.6791756715754405,41,71 +mauvais,25,4.43091192107172,40,58 +moyen,38,6.488425487901793,63,79 +mauvais,22,3.4294995474645984,50,77 +moyen,37,5.8286706053864,35,52 +mauvais,29,3.5259042010792565,62,34 +tomato,28,1.0349211001128147,69,62 +mauvais,26,5.5276384509968555,73,57 +bon,64,5.0825946290263655,31,53 +moyen,30,4.533602478441921,50,54 +moyen,51,6.62477374975283,56,62 +bon,67,3.0510206378776843,27,25 +moyen,46,5.2171899681713585,66,62 +moyen,46,3.6816345830382198,38,67 +moyen,44,5.542015794702889,55,68 +moyen,37,2.401784557216046,57,57 +tomato,21,1.261279359260036,57,57 +unicum,83,9.999505549798329,30,34 +moyen,34,6.5632156429275845,65,75 +tomato,25,1.4287039057395772,49,77 +mauvais,28,5.700944469130034,65,69 +bon,88,3.9769004796751144,43,71 +moyen,51,7.196754835932174,68,69 +bon,90,4.2530847581544124,32,67 +unicum,91,9.833794596331739,51,34 +bon,86,3.8988371679988996,32,36 +tomato,18,1.7218631556609802,76,74 +bon,79,5.8485350865777495,38,32 +bon,87,5.514821466339787,44,53 +bon,88,5.890785974719947,40,68 +moyen,35,5.337129913116316,65,57 +bon,90,5.045663944696194,45,33 +unicum,100,9.54113251987678,38,25 +moyen,46,5.580169394669969,34,54 +tomato,30,1.063321728248431,46,62 +unicum,91,7.3975120085520985,41,64 +moyen,49,7.405399614653428,38,75 +moyen,53,6.067534108967264,64,60 +tomato,19,2.6104257612129005,41,53 +mauvais,29,3.4651635868229964,61,70 +mauvais,25,4.4741189057816975,58,37 +moyen,45,5.555748422306105,30,48 +mauvais,22,5.071765610356412,47,28 +moyen,54,7.795375679849055,47,45 +mauvais,20,4.557927836196743,56,26 +mauvais,26,5.88609042785599,75,58 +bon,63,4.897943166503929,30,38 +mauvais,27,3.8501824391191057,72,74 +moyen,30,7.468227113088817,44,73 +mauvais,23,5.077067329458497,63,33 +mauvais,30,4.07685850196965,62,71 +moyen,38,6.876907357251243,49,64 +bon,90,5.718128236466038,28,35 +bon,60,3.0243725865900672,26,50 +moyen,33,5.557358699726994,44,54 +moyen,49,7.446916374469145,43,64 +mauvais,22,5.78802849800112,54,73 +bon,75,3.6053681654795757,34,61 +bon,64,4.079420867886545,38,34 +tomato,28,2.411295154404634,54,72 +bon,81,5.495459690291135,41,79 +tomato,26,2.642092405361195,44,74 +moyen,42,5.798338093087754,45,79 +mauvais,27,5.514514567325465,46,49 +mauvais,20,3.789497090200356,48,26 +bon,63,5.857425591750523,44,20 +moyen,39,7.9574176598124415,47,66 +moyen,42,6.3431632847190516,50,55 +mauvais,21,4.070073050048533,44,35 +moyen,50,6.369575744718228,49,72 +mauvais,23,4.969864677418391,59,68 +bon,65,4.230752315577193,25,43 +mauvais,25,4.136157792797933,53,41 +bon,79,4.92055004544197,44,79 +tomato,15,1.8812174726651245,69,68 +moyen,41,2.618136781881697,67,76 +mauvais,25,5.922135740614269,47,56 +moyen,31,3.6770202719855245,52,80 +bon,78,5.165329527625225,27,62 +tomato,30,2.564622643955481,74,53 +unicum,71,7.813652119687537,60,46 +moyen,51,6.576465812250883,30,59 +tomato,14,2.608065372137108,51,60 +moyen,34,4.146087594205923,58,64 +bon,81,3.655438300915942,34,30 +bon,63,5.372382252819531,30,80 +moyen,35,4.730513372694183,34,49 +moyen,35,4.1155163798011785,70,48 +bon,69,3.1527472741420106,40,75 +bon,66,3.03503712121343,26,79 +mauvais,20,5.724584463191139,52,35 +bon,64,3.1653434578667,40,51 +moyen,46,7.6651571913120815,48,61 +bon,88,4.384519504324804,27,71 +moyen,44,7.772411101333891,47,71 +mauvais,22,3.012666890742598,73,70 +bon,59,5.799958359578479,36,22 +bon,77,5.2556129434484475,45,47 +tomato,26,1.6493224019988342,62,72 +moyen,38,5.530988565033413,47,77 +bon,82,5.829541779630549,45,33 +tomato,27,1.762402887606218,40,62 +mauvais,24,4.910102973535162,53,42 +moyen,32,4.4749459148073285,44,58 +bon,90,5.40729853967202,34,53 +bon,59,4.970982675712942,39,59 +moyen,32,4.2053300162736615,41,77 +bon,57,5.3441088086176425,25,80 +moyen,55,7.319893754919835,59,80 +tomato,13,2.113032152111974,77,53 +moyen,41,4.565568553874404,52,47 +tomato,19,1.142836567026854,55,79 +bon,77,5.52992670560932,41,67 +moyen,46,7.950216932676783,31,54 +unicum,74,8.265288779057627,30,54 +mauvais,25,4.597438137078116,40,51 +moyen,35,7.642504880125525,64,69 +tomato,11,1.382725285966064,68,63 +unicum,79,6.035790039709742,38,38 +tomato,14,2.6637879097914343,53,53 +moyen,30,6.62952996990158,51,46 +moyen,45,5.7693187499337855,39,46 +bon,88,3.931245537691327,31,56 +mauvais,24,3.297897098338327,56,28 +moyen,38,7.2705049240238235,41,63 +tomato,21,1.9080346919750364,65,72 +bon,75,3.543029364178688,45,38 +mauvais,27,3.1062330086164103,53,41 +tomato,15,1.8440196213270443,74,70 +mauvais,27,4.374348400050372,42,30 +moyen,37,7.10631986140808,38,44 +mauvais,24,3.9896571858169487,58,22 +moyen,51,4.05815329169107,38,67 +mauvais,30,5.61139959705076,52,26 +moyen,34,2.537718716884849,30,75 +bon,90,5.773975326813316,43,28 +mauvais,23,4.536129734577373,48,21 +mauvais,28,5.2401523286697245,61,30 +bon,87,3.561477971754559,45,59 +mauvais,27,3.639012106482321,67,38 +mauvais,30,4.3482802973215975,46,50 +tomato,18,1.4033534823521252,47,50 +bon,67,5.386742614552356,38,32 +mauvais,27,4.605035584271038,46,52 +unicum,98,6.814899009750093,43,23 +moyen,41,6.520903035872598,50,76 +bon,56,3.0142672731321145,35,56 +mauvais,29,4.168840313649893,50,42 +unicum,100,6.479044881831686,56,70 +unicum,87,8.501020589067842,47,44 +moyen,41,4.562056236263,60,57 +unicum,92,6.713272526901659,49,40 +mauvais,30,3.9220272180092906,55,55 +unicum,97,8.798843781199846,31,54 +bon,79,3.6296504085508445,28,38 +tomato,20,1.4733435257563776,78,64 +tomato,15,1.3233297882172645,79,66 +moyen,50,3.161396506122738,53,52 +mauvais,29,3.137676860568804,58,28 +bon,89,5.681891642649049,28,20 +unicum,93,7.085911766987082,37,31 +mauvais,21,5.776186578555888,40,55 +bon,88,4.817391277187148,39,78 +moyen,48,5.380652993224206,68,78 +tomato,16,1.8590384696115136,47,53 +moyen,38,6.519736663492234,57,80 +mauvais,26,5.307114913366763,64,64 +bon,60,3.1430727435542507,25,31 +moyen,48,6.206026100262973,32,44 +bon,62,3.9665244807639723,27,26 +mauvais,21,4.810410252406734,58,49 +tomato,17,1.8826036048809265,45,52 +unicum,88,8.336212521100066,60,67 +moyen,51,5.251279769050427,36,78 +unicum,81,8.07511195028497,58,78 +moyen,54,6.554393475051118,66,64 +bon,70,3.560519140977585,37,78 +unicum,82,7.191508798024653,41,66 +bon,62,4.563219429803995,45,24 +bon,67,3.629610664373338,44,62 +moyen,42,2.0042398220698843,44,74 +bon,73,5.152298292842615,43,38 +mauvais,22,3.1320300814400452,45,57 +mauvais,25,5.04647409058946,69,70 +bon,74,4.15868963200608,26,60 +mauvais,27,3.514264178314835,69,24 +unicum,82,9.000421602582456,47,71 +bon,72,5.881435503506574,43,75 +moyen,52,4.601160600738851,57,44 +bon,82,4.630408471668694,27,46 +moyen,50,2.1459210029983984,62,71 +tomato,22,1.9370990358371882,79,67 +mauvais,22,4.979447097740737,64,24 +moyen,51,3.376357298753156,68,53 +mauvais,27,5.50570329532364,59,42 +mauvais,24,5.983427636380565,59,38 diff --git a/__pycache__/fonctions.cpython-311.pyc b/__pycache__/fonctions.cpython-311.pyc new file mode 100644 index 0000000..b066da4 Binary files /dev/null and b/__pycache__/fonctions.cpython-311.pyc differ diff --git a/__pycache__/fonctions.cpython-313.pyc b/__pycache__/fonctions.cpython-313.pyc new file mode 100644 index 0000000..d691a94 Binary files /dev/null and b/__pycache__/fonctions.cpython-313.pyc differ diff --git a/fonctions.py b/fonctions.py new file mode 100644 index 0000000..96587cb --- /dev/null +++ b/fonctions.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- + +import csv +LOTAstats_csv = open('LOTAstats.csv','r', encoding ='utf-8') +lecteur = csv.DictReader(LOTAstats_csv, delimiter=',') +LOTA = list(lecteur) +def joueur_testeur(kill,power): + fruit1 = [kill,power] + liste_fruits = [] + for fruit in LOTA: + liste_fruits.append((fruit['classe'],int(fruit['frags']),int(fruit['death']))) + + test = k_plus_proches(fruit1, liste_fruits,10) + return(test) + + + +from math import sqrt +def distance3D(point_a,point_b): + dist_a_b = sqrt((point_a[0] - point_b[0])**2 + (point_a[1] - point_b[1])**2 ) + return dist_a_b + + + + +def k_plus_proches(point,liste,k): + dist = [] + for a in range (0,len(liste)): + dist.append([]) + dist[a].append(distance3D(point,[int(liste[a][1]),int(liste[a][2])])) + dist[a].append(liste[a][0]) + + k_voisins = [] + for e in range (0,k): + plus_petit = dist[0] + plus_petit_index = 0 + for f in range (0,len(dist)): + if plus_petit[0] > dist[f][0]: + + plus_petit = dist[f] + plus_petit_index = f + + k_voisins.append(plus_petit) + dist.pop(plus_petit_index) + return k_voisins + + + + +def classejoueur (kill,death): + resulta = joueur_testeur(kill,death) + nombreproche = [] + for a in range (0,len(resulta)): + vrai = 0 + for b in range (0,len(nombreproche)): + if nombreproche[b][1] == resulta[a][1]: + nombreproche[b][0] += 1 + vrai = 1 + + if vrai == 0 : + nombreproche.append([]) + nombreproche[len(nombreproche)-1].append(1) + nombreproche[len(nombreproche)-1].append(resulta[a][1]) + indexplus = 0 + valeurplus = 0 + for a in range (0,len(nombreproche)): + if nombreproche[a][0]>valeurplus: + indexplus = a + valeurplus = nombreproche[a][0] + + return(nombreproche[indexplus][1]) + + + +def tour(rang): + if rang == 'tomato': + toure = "1 er tour" + elif rang == 'mauvais': + toure = "2 er tour" + elif rang == 'moyen': + toure = "3 eme tour" + elif rang == 'bon': + toure = "4 eme tour" + elif rang == 'unicum': + toure = "tour ultime" + + return (toure) \ No newline at end of file diff --git a/static/IMG/celestial.png b/static/IMG/celestial.png new file mode 100644 index 0000000..7737063 Binary files /dev/null and b/static/IMG/celestial.png differ diff --git a/static/IMG/fleche.png b/static/IMG/fleche.png new file mode 100644 index 0000000..987deb8 Binary files /dev/null and b/static/IMG/fleche.png differ diff --git a/static/IMG/fleche1.png b/static/IMG/fleche1.png new file mode 100644 index 0000000..d4a08e3 Binary files /dev/null and b/static/IMG/fleche1.png differ diff --git a/static/IMG/logo.png b/static/IMG/logo.png new file mode 100644 index 0000000..9a36fbf Binary files /dev/null and b/static/IMG/logo.png differ diff --git a/static/IMG/passage.png b/static/IMG/passage.png new file mode 100644 index 0000000..813704d Binary files /dev/null and b/static/IMG/passage.png differ diff --git a/static/IMG/petit_logo.png b/static/IMG/petit_logo.png new file mode 100644 index 0000000..abc75ae Binary files /dev/null and b/static/IMG/petit_logo.png differ diff --git a/static/IMG/titre.png b/static/IMG/titre.png new file mode 100644 index 0000000..221c1ac Binary files /dev/null and b/static/IMG/titre.png differ diff --git a/static/download_files/cube runner_red alert.rar b/static/download_files/cube runner_red alert.rar new file mode 100644 index 0000000..d48c4e4 Binary files /dev/null and b/static/download_files/cube runner_red alert.rar differ diff --git a/static/fonts/DIN.ttf b/static/fonts/DIN.ttf new file mode 100644 index 0000000..8005dcf Binary files /dev/null and b/static/fonts/DIN.ttf differ diff --git a/static/fonts/Valorant.ttf b/static/fonts/Valorant.ttf new file mode 100644 index 0000000..1b504bb Binary files /dev/null and b/static/fonts/Valorant.ttf differ diff --git a/static/fonts/ahronbd.ttf b/static/fonts/ahronbd.ttf new file mode 100644 index 0000000..c3cbba2 Binary files /dev/null and b/static/fonts/ahronbd.ttf differ diff --git a/static/styles/style.css b/static/styles/style.css new file mode 100644 index 0000000..7752037 --- /dev/null +++ b/static/styles/style.css @@ -0,0 +1,321 @@ +@font-face { + font-family: "Aharoni"; + src: url("../fonts/ahronbd.ttf") format("truetype"); +} +@font-face { + font-family: "Valorant"; + src: url("../fonts/Valorant.ttf") format("truetype"); +} +@font-face { + font-family: "DIN"; + src: url("../fonts/DIN.ttf") format("truetype"); +} + +body { + background: white; + text-align: center; + color: white; + margin: 0; + padding: 0; +} + +a { + text-decoration: none; + color: white; +} + + + +/* + ╔══════════════■█■═════════════╗ +═══════════════════════════════════════════════════╣ CSS pour le header ╠════════════════════════════════════════════════════════ + ╚══════════════■█■═════════════╝ +*/ +header { + font-size: 50px; + width: 100%; + margin: 0; + padding:0; + background-position: center; +} + +.bandeau { + background-color: black; + font-size: 15px; + display: flex; + margin: 0; + padding: 0; + white-space: nowrap; + height: 75px; + font-family: DIN; + align-items: center; +} + +.marge_gauche { + margin-left: 25px; +} + +nav ul { + list-style-type: none; + margin: 0; + padding: 0; + display: flex; +} + +.menu_sl { + z-index: 1; + margin-top: 2px; + visibility: hidden; + position: absolute; + width: 100px; + height: 0px; + background-color: #292929; + transition: all .1s ease; + margin-left: -9.5px; +} + +.menu:hover .menu_sl { + height: 100px; + visibility: visible; + +} + +.menu_sl ul { + font-size: 12px; + flex-direction: column; + text-align: start; +} + +.menu_sl ul li { + margin-top: 8%; +} + +.autre { + margin: 0 10px; +} + +nav span { + color: #fff; + text-decoration: none; + padding: 10px; + display: block; +} + +nav span:hover { + cursor: pointer; + box-shadow: 0 2px 0 0; +} + +.conexion{ + display: flex; + justify-content: end; + width: -moz-available; width: -webkit-fill-available; +} + +.entete { + position: relative; + z-index: 0; +} + +video { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + object-fit: cover; + z-index: -1; +} + +.elm { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + border-top: 100px solid transparent; +} + +.entete img, +.entete button { + position: relative; + z-index: 1; + margin: 0; + padding: 0; +} + +.button { + border-top: 25px solid transparent; + border-bottom: 150px solid transparent; +} + +.download { + border: none; + cursor: pointer; + font-weight: bold; + font-size: 14px; + border: 1px solid white; +} + +.download_lg { + position: relative; + display: block; + padding: 15px 30px; + overflow: hidden; + color: #fff; + background-color: #ff4655; +} + +.download_sl { + position: absolute; + top: 0; + bottom: -1px; + left: -8px; + width: 0; + background-color: #0f1923; + transform: skew(-15deg); + transition: all .2s ease; +} + +.download_text { + position: relative; +} + +.download:hover .download_sl { + width: calc(100% + 15px); +} + +.triangle { + width: 0; + height: 0; + border-bottom: 50px solid white; + border-right: 50px solid transparent; +} + +/* + ╔═════════════■█■════════════╗ +════════════════════════════════════════════════════╣ CSS pour le main ╠═════════════════════════════════════════════════════════ + ╚═════════════■█■════════════╝ +*/ +main { + display: flex; + flex-direction: row; + margin-bottom: 8% +} + +main h1 { + color: #de2f3d; + font-family: DIN; + font-size: 90px; + text-align: start; +} + +.inscription { + display: flex; + flex-direction: column; + margin-left: 5%; +} + +.carte { + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} + +.card { + display: flex; + background-color: #0f131f; + box-shadow: 12px 17px 51px #151f2b; + border-radius: 12px; + font-family: Aharoni; + justify-content: center; + flex-direction: column; + color: white; + width: 300px; + padding: 1% 5% 3% 5%; + margin-top: -10%; +} + +.result { + height: 350px; +} + +.info { + position: relative; + margin-bottom: 8%; +} + +input { + border: 0; + border-bottom: 2px #fff solid; + background: transparent; + color: white; + align-items: center; + display: block; + padding: 10px 0; + font-size: auto; + outline: none; + width: 300px; +} + +label { + position: absolute; + top: 0; + left: 0; + padding: 10px 0; + font-size: 15px; + pointer-events: none; + transition: .5s; +} + +input:focus ~ label, +input:valid ~ label { + top: -20px; + font-size: 12px; +} + +.envoyer { + padding: 1em 2.5em; + border-radius: 6em; + transition: all .2s; + border: none; + background-color: white; +} + +.envoyer:hover { + transform: translateY(-3px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); + cursor: pointer; +} + +.deroulement { + display: flex; + justify-content: right; + align-items: right; + flex-direction: column; + width: -moz-available; width: -webkit-fill-available; + margin-right: 5%; + margin-left: 5%; + color: black; + text-align: start; + font-family: sans-serif; +} + +.tournoi_texte { + margin-top: -50px; +} + +/* + ╔══════════════■█■═════════════╗ +═══════════════════════════════════════════════════╣ CSS pour le footer ╠════════════════════════════════════════════════════════ + ╚══════════════■█■═════════════╝ +*/ +footer { + background-color: black; + color: white; + text-align: center; + padding: 10px; +} \ No newline at end of file diff --git a/static/videos/video.mp4 b/static/videos/video.mp4 new file mode 100644 index 0000000..7fec7a9 Binary files /dev/null and b/static/videos/video.mp4 differ diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..fa624ac --- /dev/null +++ b/templates/index.html @@ -0,0 +1,111 @@ + + + + + League of the Ancient + + + + + + + +
+
+ + + + + + + + +
+ +
+ + + +
+
+
+ + +
+
+

INSCRIPTION

+
+
+

Formulaire

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+
+
+

DEROULEMENT

+

Ce tournoi se passe sous forme de duel pour determiner les plus forts ! Pour eviter de perdre des le debut, nous avons choisi de vous faire vous affronter celon votre niveau respetif. Pour ce faire, vous devrez remplir un formulaire et y inscrire vos statistiques de la saison derniere. Apres quoi un rang vous sera attribue pour le tournoi ainsi que le tour auquel vous passerez.

+ +
+
+ + + + + \ No newline at end of file diff --git a/templates/resultat.html b/templates/resultat.html new file mode 100644 index 0000000..aaa2a0b --- /dev/null +++ b/templates/resultat.html @@ -0,0 +1,86 @@ + + + + + League of the Ancient + + + + + +
+
+ + + + + +
+ +
+ + + +
+
+
+
+
+

INSCRIPTION

+
+
+

Felicitation

+

Le rang {{classe}} vous a ete attribue. Vous passerez donc au {{toure}}. Bonne chance a vous !

+
+
+
+
+

DEROULEMENT

+

Ce tournoi se passe sous forme de duel pour determiner les plus forts ! Pour eviter de perdre des le debut, nous avons choisi de vous faire vous affronter celon votre niveau respetif. Pour ce faire, vous devrez remplir un formulaire et y inscrire vos statistiques de la saison derniere. Apres quoi un rang vous sera attribue pour le tournoi ainsi que le tour auquel vous passerez.

+ +
+
+ + + + + diff --git a/views.py b/views.py new file mode 100644 index 0000000..72f1e8a --- /dev/null +++ b/views.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +from flask import Flask, render_template, send_file, request +import os +from fonctions import classejoueur, tour + +app = Flask(__name__) +IMG_FOLDER = os.path.join('static', 'IMG') +app.config['UPLOAD_FOLDER'] = IMG_FOLDER + +@app.route('/') +def index(): + petit_logo = os.path.join(app.config['UPLOAD_FOLDER'], 'petit_logo.png') + celestial = os.path.join(app.config['UPLOAD_FOLDER'], 'celestial.png') + titre = os.path.join(app.config['UPLOAD_FOLDER'], 'titre.png') + fleche = os.path.join(app.config['UPLOAD_FOLDER'], 'fleche.png') + passage = os.path.join(app.config['UPLOAD_FOLDER'], 'passage.png') + return render_template('index.html', petit_logo=petit_logo, celestial=celestial, + titre=titre, fleche=fleche, passage=passage) + +@app.route('/download') +def download(): + jeu = 'static/download_files/cube runner_red alert.rar' + return send_file(jeu, as_attachment=True) + +@app.route('/resultat',methods = ['POST']) +def resultat(): + result = request.form + f = int(result['frags']) + d = int(result['death']) + c=classejoueur(f, d) + t=tour(c) + petit_logo = os.path.join(app.config['UPLOAD_FOLDER'], 'petit_logo.png') + celestial = os.path.join(app.config['UPLOAD_FOLDER'], 'celestial.png') + titre = os.path.join(app.config['UPLOAD_FOLDER'], 'titre.png') + fleche = os.path.join(app.config['UPLOAD_FOLDER'], 'fleche.png') + passage = os.path.join(app.config['UPLOAD_FOLDER'], 'passage.png') + return render_template("resultat.html", frags=f, death=d, classe=c, toure=t, + petit_logo=petit_logo, celestial=celestial, titre=titre, + fleche=fleche, passage=passage) + +app.run(debug=True) \ No newline at end of file