Commit Graph

60 Commits

Author SHA1 Message Date
b2364a1ade add some xtasks 2024-10-14 19:23:48 +02:00
7227f1776f use library for simulation 2024-10-14 19:11:00 +02:00
2b0b97cba8 add benchmark for cloning the board 2024-10-10 20:03:31 +02:00
55050d5451 don't strip release builds 2024-10-07 19:24:16 +02:00
8895f875b2 add more statistics to regression test 2024-10-07 19:24:00 +02:00
f3d7c3160d reuse old simulation states 2024-10-07 10:17:02 +02:00
4e44ac548c make nodes depend on snake length 2024-10-06 22:28:08 +02:00
6751c7e9cd gracefully handle no move left instead of 404 2024-10-06 22:27:47 +02:00
e545f09bb4 don't run docker in interactive mode 2024-10-06 21:59:28 +02:00
6cb0fe1550 evaluate stop condition at every simulation step 2024-10-06 21:55:15 +02:00
d8452daddf run local build in docker for regression test 2024-10-06 21:34:51 +02:00
e00eefb990 warn instead of error on unknown latency 2024-10-06 21:25:17 +02:00
f6845b5126 fast response with no movement option 2024-10-06 21:05:45 +02:00
ac4c2d6f72 reduce target latency 2024-10-06 21:04:45 +02:00
d1b0ef3ccf fix clippy warnings 2024-10-05 20:30:17 +02:00
bb356427df cargo clippy --fix 2024-10-05 20:19:49 +02:00
16c78c81ae add simulation benchmark 2024-10-05 20:19:17 +02:00
a4dc6eb6da separate library and executable 2024-10-05 20:19:05 +02:00
c5b0319ac4 fix latency calculation
standard Duration can't go negative
2024-10-05 18:56:19 +02:00
5cb9c3d202 use debian instead of alpine 2024-10-03 18:52:29 +02:00
27040b66ee play more short games for regression test 2024-10-03 18:52:17 +02:00
0d740621c6 build for my server cpu 2024-10-03 18:52:00 +02:00
c6abd47ef0 add turn info to game over event 2024-10-03 06:39:32 +02:00
075a08a78c add constrictor mode 2024-10-03 06:09:06 +02:00
6bcce03d2a heavier release build optimization 2024-10-03 05:55:07 +02:00
3d58e5331b give the snake more thinging time 2024-10-03 05:37:19 +02:00
a1bdd4cb1b remove container after regression test 2024-10-03 05:37:06 +02:00
12276bc354 allow terminating in progress simulations 2024-10-03 05:11:33 +02:00
d28eec7ef2 spawn extra compute threads 2024-10-03 05:09:04 +02:00
1c9d07f2cf remove unused code 2024-10-03 04:30:26 +02:00
6123ca177e solo mode (not verry good) 2024-10-03 04:22:59 +02:00
23be6f1a18 variable simulation time 2024-10-03 03:30:16 +02:00
c2d242453e run regression test with local docker image instead of actual server 2024-10-03 02:15:57 +02:00
accfe7acbb fix clippy lints 2024-10-03 01:45:46 +02:00
61e5f26bd7 clippy fix 2024-10-03 01:44:01 +02:00
8fa8282177 use montecarlo trees to evaluate the best mooves for all snakes 2024-10-03 01:43:14 +02:00
30c20b3f54 show production duel in browser 2024-09-30 23:20:59 +02:00
7998eeb5b8 add simulation to get the best move 2024-09-30 23:20:46 +02:00
7eb6eff65a move MAX_HEALTH into main 2024-09-30 21:49:43 +02:00
39e84b3783 rename move to action 2024-09-30 19:40:02 +02:00
46f4e00e50 start over. Move randomly in a valid direction 2024-09-30 19:34:09 +02:00
d1a128e9df add documentation 2024-09-30 19:32:17 +02:00
e5b81a3ff9 return None if no valid move was found 2024-09-30 18:34:47 +02:00
b7ea419d21 remove unused imports 2024-09-30 18:30:53 +02:00
af0baffde0 whatever I did there 2024-09-30 18:26:22 +02:00
157ea2aaad use serdes rename_all 2024-09-30 18:25:59 +02:00
27d60845b5 add regression test and play vs production 2024-09-30 18:22:32 +02:00
c13f2d553b slim docker image 2024-09-02 20:21:19 +02:00
60bd5acd35 add xtask to push docker image 2024-09-02 20:00:05 +02:00
0b02efc752 simplify safety check 2024-09-02 19:59:48 +02:00