From cfa92e13dce567495cbaa838d616d1e0ff0e7697 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 7 Jun 2025 22:11:04 +0200 Subject: [PATCH] added desc to some constants --- answer.txt | 2 +- lastActions.txt | 35 +++++++++++++++++++++++++++-------- leaderboard.txt | 8 ++++---- output.txt | 19 ++++++++++++------- src/structure.c | 6 +++--- tempLeader.txt | 8 ++++---- 6 files changed, 51 insertions(+), 27 deletions(-) diff --git a/answer.txt b/answer.txt index 153c33d..39392bc 100644 --- a/answer.txt +++ b/answer.txt @@ -1 +1 @@ -242 64 \ No newline at end of file +95 99 \ No newline at end of file diff --git a/lastActions.txt b/lastActions.txt index 52fc0ae..b1314f6 100644 --- a/lastActions.txt +++ b/lastActions.txt @@ -1,8 +1,27 @@ -154.166507 9.734461 -205.806972 -14.226458 -173.674331 -36.266074 -238.827680 -9.528595 -20.538274 -173.689063 -240.210225 -2.541816 -153.741643 74.111175 --73.886221 -125.850095 +183.093458 11.753695 +267.947245 -5.705595 +245.964432 19.779281 +-17.271259 168.232344 +262.761717 13.102528 +8.722496 187.724914 +248.052110 -15.689672 +81.854430 -134.316328 +274.079796 1.563606 +8.351894 176.625116 +266.188835 21.930207 +-55.223673 -136.697143 +267.965510 14.672781 +10.450950 170.670914 +-17.762543 231.138085 +48.701967 163.713291 +245.290797 12.585506 +-164.195223 -10.051226 +-14.192269 210.356060 +-17.234565 -137.789935 +-5.799111 252.267548 +-184.834810 10.172041 +-29.883679 -157.179676 +-203.684199 -21.155081 +-132.718341 -105.637270 +-194.091639 172.910493 +-26.085494 249.631387 diff --git a/leaderboard.txt b/leaderboard.txt index 6ea68fb..af6e889 100644 --- a/leaderboard.txt +++ b/leaderboard.txt @@ -2,10 +2,10 @@ name, elo ./bots/dumb 1347 ./bots/dumb2 1404 ./bots/dumb3 1355 -./bots/dumb4 1135 +./bots/dumb4 980 ./bots/dumb5 540 ./bots/dumb6 562 -./bots/follow1 810 -./bots/follow2 916 -./bots/follow3 822 +./bots/follow1 854 +./bots/follow2 1003 +./bots/follow3 899 ./bots/follow4 648 diff --git a/output.txt b/output.txt index da2a5e3..b2e4465 100644 --- a/output.txt +++ b/output.txt @@ -1,12 +1,17 @@ +4 +0 (1 3) (6.92 27.72) +1 (1 3) (26.96 44.59) +2 (1 3) (83.49 84.05) +3 (2 0) (34.69 44.29) 3 -0 (2 0) (66.72 61.17) -1 (2 0) (45.95 34.36) -2 (0 0) (5.48 36.77) -2 -1 3 -S1E +5 5 +..S14 +....0 +...35 +.E15. +..... -100 200 5 0.90 0.80 0.20 0.00 0.20 +100 220 5 0.90 0.80 0.20 0.00 0.20 Room Size, Maximum speed, Player Radius, Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width \ No newline at end of file diff --git a/src/structure.c b/src/structure.c index 422ddf7..527b97a 100644 --- a/src/structure.c +++ b/src/structure.c @@ -9,7 +9,7 @@ const int WIDTH = 1000; const int HEIGHT = 1000; const int ROOM_SIZE = 100; -const int MAX_SPEED = 200; // m/s +const int MAX_SPEED = 220; // m/s const double DIST_EDGE = 0.2; const double START_EDGE = 0.05; @@ -19,8 +19,8 @@ const double RESTITUTION_PLAYER = 0.8; // keep equal to previous constant const int PLAYER_R = 5; const int MAX_THETA_SPAWN = 80; // degrees -const int BARRIERS = 1; -const int ONEATATIME = 1; +const int BARRIERS = 1; // enables/disables barriers [UNUSED] +const int ONEATATIME = 0; // 0 = everyone move at the same time, 1 = turn-based movement (one player at a time) const double BARRIER_WIDTH = 0.05; const double FRICTION = 0.90; diff --git a/tempLeader.txt b/tempLeader.txt index 6ea68fb..af6e889 100644 --- a/tempLeader.txt +++ b/tempLeader.txt @@ -2,10 +2,10 @@ name, elo ./bots/dumb 1347 ./bots/dumb2 1404 ./bots/dumb3 1355 -./bots/dumb4 1135 +./bots/dumb4 980 ./bots/dumb5 540 ./bots/dumb6 562 -./bots/follow1 810 -./bots/follow2 916 -./bots/follow3 822 +./bots/follow1 854 +./bots/follow2 1003 +./bots/follow3 899 ./bots/follow4 648