Commit Graph
100 Commits
Author SHA1 Message Date
daniel156161 f8c492f333 not count stale games as active games because they will get deletet after ttl expire into redis
Build and Push Docker Container / build-and-push (push) Successful in 56s
2026-04-04 16:02:51 +02:00
daniel156161 5997a1f6c1 only update stuck game metric when game state backend is not redis
Build and Push Docker Container / build-and-push (push) Successful in 57s
2026-04-04 15:33:07 +02:00
daniel156161 8564606f4c disable removeing cound of stale games in the backend because redis is doing it
Build and Push Docker Container / build-and-push (push) Successful in 1m1s
2026-04-04 15:28:25 +02:00
daniel156161 561527a21b correct end game active metric count
Build and Push Docker Container / build-and-push (push) Successful in 52s
2026-04-04 15:23:56 +02:00
daniel156161 47051a6068 make Metrics Collector Class and auto send to redis when change happend
Build and Push Docker Container / build-and-push (push) Successful in 1m0s
2026-04-04 14:52:21 +02:00
daniel156161 c3da096320 allow to send metrics to memory or redis
Build and Push Docker Container / build-and-push (push) Successful in 52s
2026-04-04 14:21:54 +02:00
daniel156161 eb6a054bc9 removed --websocket-ping-interval into docker startup
Build and Push Docker Container / build-and-push (push) Successful in 1m10s
2026-04-04 13:35:02 +02:00
daniel156161 4daf63d483 update uv.lock file
Build and Push Docker Container / build-and-push (push) Successful in 56s
2026-04-04 13:26:17 +02:00
daniel156161 33c8fabc4c use redis.asyncio insted of the old aioredis package
Build and Push Docker Container / build-and-push (push) Successful in 51s
2026-04-04 13:25:23 +02:00
daniel156161 00d456a412 update requirements
Build and Push Docker Container / build-and-push (push) Successful in 1m11s
2026-04-04 12:59:52 +02:00
daniel156161 65128b25c2 allow to disable self.running_games as L1 Cache into Worker when useing Redis Backend
Build and Push Docker Container / build-and-push (push) Successful in 54s
2026-04-04 12:53:31 +02:00
daniel156161 a1c4a4b68d create MemoryGameBoardStore Class and rework Building of Game Board Storage 2026-04-04 12:34:00 +02:00
daniel156161 4547e3443b add redis backend for storage of gameboards 2026-04-04 12:07:05 +02:00
daniel156161 bbdc8b288a create better future planning into BestBattleSnake 2026-04-04 12:00:02 +02:00
daniel156161 c6ebb5834b auto remove stuck games
Build and Push Docker Container / build-and-push (push) Successful in 51s
2026-04-04 10:23:12 +02:00
daniel156161 dbcf9cadaf add more metrics data
Build and Push Docker Container / build-and-push (push) Successful in 1m2s
2026-04-04 09:58:11 +02:00
daniel156161 316870ef7a add enemy cut off trap check 2026-04-04 09:55:58 +02:00
daniel156161 b0d484dbab add dataset and models folder into git ignore file and change train-ai to get the input data from the dataset
Build and Push Docker Container / build-and-push (push) Failing after 12m11s
2026-04-04 00:00:33 +02:00
daniel156161 9e826afa5f add Training for AI and AI Model and allow to collect rl data from BestBattleSnake
Build and Push Docker Container / build-and-push (push) Successful in 1m36s
2026-04-03 23:19:09 +02:00
daniel156161 d3b0488e0f update python packages
Build and Push Docker Container / build-and-push (push) Successful in 1m32s
2026-04-03 21:51:13 +02:00
daniel156161 4e9a5595bc cahange battlsnake cli to https url
Build and Push Docker Container / build-and-push (push) Successful in 1m43s
2026-04-03 21:48:27 +02:00
daniel156161 8f938ce3fe Update BestBattleSnake Version to 2.6.0
Build and Push Docker Container / build-and-push (push) Failing after 23s
2026-04-03 21:40:31 +02:00
daniel156161 dfcdbae85b add better enemy constrictor projection 2026-04-03 21:39:08 +02:00
daniel156161 fb579e5fbc add customisable timeout buffer with env variable 2026-04-03 21:23:18 +02:00
daniel156161 8f6bc3cfdd add timeout budget when exeaded use quick save move before timeout 2026-04-03 21:17:08 +02:00
daniel156161 f124ce6f96 head hunt only when my snake is bigger and into dual mode 2026-04-03 20:57:33 +02:00
daniel156161 6ab0161b49 add types to function args 2026-04-03 20:44:03 +02:00
daniel156161 d7bd89eae9 add python doc strings 2026-04-03 20:21:12 +02:00
daniel156161 eace1872d7 move snake builder into __init__ of snakes file and use it into server class 2026-04-03 20:11:46 +02:00
daniel156161 0a3db6ba57 add versions to snakes and read it in server class 2026-04-03 19:57:55 +02:00
daniel156161 013ac98821 implement royale game mode and tighten spaces in duel mode 2026-04-03 19:26:56 +02:00
daniel156161 a3fe386198 use battlsnake cli from git repo and build client localy 2026-04-03 18:37:16 +02:00
daniel156161 8a431da014 add local client as submodule 2026-04-03 18:31:11 +02:00
daniel156161 19e4aee454 rework logging and add metrics and prometheus metrics 2026-04-03 18:26:31 +02:00
daniel156161 c8dd01490c add aiologger package 2026-04-03 18:01:38 +02:00
daniel156161 1e57ad1af6 add bootstrap script to start the server up the same way 2026-04-03 18:01:18 +02:00
daniel156161 4ca905fbf0 add quart common submodule 2026-04-03 17:38:52 +02:00
daniel156161 8e733dfe39 add script to analyse dataset 2026-04-03 15:45:54 +02:00
daniel156161 49f2e0b008 add more flags and allow to read more input file then one 2026-04-03 15:44:19 +02:00
daniel156161 37de34cc5e update to store and curate data correctly 2026-04-03 15:43:19 +02:00
daniel156161 3d7f92e20f use hypercorn in production without uv bload
Build and Push Docker Container / build-and-push (push) Successful in 48s
2026-04-03 14:58:41 +02:00
daniel156161 2d7a2505d4 create payload of json string and then save it
Build and Push Docker Container / build-and-push (push) Successful in 1m33s
2026-04-03 14:31:15 +02:00
daniel156161 a82eaaaec5 allow sync and async function calls 2026-04-03 14:10:38 +02:00
daniel156161 51de53d01c add dataset updates with doc updates
Build and Push Docker Container / build-and-push (push) Failing after 12m18s
2026-04-03 11:40:47 +02:00
daniel156161 2e1f91355b add Dataset Class and Tests 2026-04-03 10:35:21 +02:00
daniel156161 6b69d133b6 fix line spacing and make it look better 2026-04-03 10:30:35 +02:00
daniel156161 7d52d7dca8 add justfile for testing 2026-04-03 10:30:07 +02:00
daniel156161 a885b624f9 add new BestBattleSnake 2026-04-03 10:29:48 +02:00
daniel156161 9e3a62d8e8 update actions to new version:
Build and Push Docker Container / build-and-push (push) Successful in 1m27s
- checkout: v6
- setup-buildx-action: v4
- login-action: v4
- build-push-action: v7
2026-03-10 09:00:30 +01:00
daniel156161 9093ca0512 add calling of portainer Stack Webhook to update conteiner
Build and Push Docker Container / build-and-push (push) Successful in 1m30s
2026-01-06 13:41:06 +01:00
daniel156161 6e74b5fb57 change from sync to async and from flask to quart
Build and Push Docker Container / build-and-push (push) Successful in 1m35s
2026-01-06 13:36:43 +01:00
daniel156161 962d8b1043 update requirements 2026-01-06 13:36:06 +01:00
daniel156161 8ea9cbdcee add uv package manager and use it to build container 2026-01-06 13:35:55 +01:00
daniel156161 c458219125 remove migrations and add them into ignore file list
Build and Push Docker Container / build-and-push (push) Successful in 7m44s
2025-10-13 16:38:24 +02:00
daniel156161 a7a463ed91 add workflow action to build docker image when pushing onto main 2025-10-13 16:30:36 +02:00
daniel156161 5c1ef7f05f have largest turns first 2025-06-03 11:36:55 +02:00
daniel156161 d32568cdf2 order cleanup by turns 2025-06-03 11:11:33 +02:00
daniel156161 61721a7eb6 change request endpoints to async 2025-05-27 13:28:08 +02:00
daniel156161 bcc9c71c30 change from edgedb to gel 2025-05-15 09:56:01 +02:00
daniel156161 58bbbf3cbd allow to return cleaned up values 2025-05-15 09:55:12 +02:00
daniel156161 4d515f0784 init class when cleaning up 2025-04-28 17:06:49 +02:00
daniel156161 8424c324e8 fix function nameing 2025-04-28 16:14:04 +02:00
daniel156161 c5c2652f3a add cleanup code for storage classes 2025-04-28 13:36:34 +02:00
daniel156161 0768e7f254 not check tls certificat when connection to server by default 2025-03-08 12:13:46 +01:00
daniel156161 31d2e7ea55 add code to reconnect to database if connection is gettring broken or database getting a reboot 2025-03-08 11:32:19 +01:00
daniel156161 4b51ddc84d update requirements 2025-01-22 10:05:21 +01:00
daniel156161 31f5225100 update requirements 2024-11-29 11:26:30 +01:00
daniel156161 deb95c6246 update requirments 2024-06-27 12:21:04 +02:00
daniel156161 600cde4a3e add EdgeDB Migrations 2024-05-12 12:44:22 +02:00
daniel156161 e068fb8614 add function when not eat food to remove snake tail 2024-05-08 23:45:07 +02:00
daniel156161 80b7c4df89 fix typo in LocalStorage file path 2024-05-08 23:43:01 +02:00
daniel156161 da0347731c make deletion easyer when linked with other objects and make gameboard url into a function 2024-05-08 19:04:58 +02:00
daniel156161 a09c05b6ec only store one object of GameType and Ruleset when they already exists in the database 2024-05-08 16:11:44 +02:00
daniel156161 aba457423e only store one snake with the same type and move Calculations into moves as the array<json> type 2024-05-08 15:38:14 +02:00
daniel156161 bb92715de1 marke spots where to add constraint 2024-05-08 14:44:48 +02:00
daniel156161 cf45aa60aa remove calculations from snake and move it into moves 2024-05-08 14:40:47 +02:00
daniel156161 a58e9695dd fix single mode local storage 2024-05-08 14:39:17 +02:00
daniel156161 b57ae5eab2 store all games and set standard when gameboard map is empty 2024-05-07 19:00:33 +02:00
daniel156161 817b970623 game game_type and ruleset exclusive 2024-05-07 18:59:59 +02:00
daniel156161 c9e6947758 change only output when snake is in a duel 2024-05-06 11:23:13 +02:00
daniel156161 4a1fbf2752 fix nameing of type and rename function name 2024-05-06 11:17:44 +02:00
daniel156161 5b8bf0da31 move storage classes into server folder and fix error in localStorage when winner_snake is none 2024-05-06 09:13:43 +02:00
daniel156161 4a8cb40bde make winner snake into list 2024-05-06 02:55:14 +02:00
daniel156161 c5342c1f4d add seperator when more winners when useing edgedb 2024-05-06 00:50:56 +02:00
daniel156161 ac7c397093 add c to build the module edgedb 2024-05-05 22:50:02 +02:00
daniel156161 7dd46dd72b add env argument for StorageLoader to load correct module and use it when store game history is enabled 2024-05-05 22:12:14 +02:00
daniel156161 10c7f2656c edgedb: move Calculations into own type 2024-05-05 22:05:10 +02:00
daniel156161 f00efe607f remove Moves when GameBoard get removed 2024-05-05 21:00:29 +02:00
daniel156161 c333706b75 add class to store the data in the EdgeDB 2024-05-05 20:54:56 +02:00
daniel156161 917bd3f6bd add EdgeDB dataschema and module 2024-05-05 20:46:15 +02:00
daniel156161 83bcf4f194 make new LocalStorage Class and move save functions into it 2024-05-05 17:02:18 +02:00
daniel156161 ef4dca447f fix error where my snake got not found in avoid_get_eaten_by_other_snakes 2024-04-18 23:56:49 +02:00
daniel156161 db3a353090 change over to new Game Board class from old Game Storage class 2024-04-18 23:41:53 +02:00
daniel156161 1f4d17d42f add store functions to game board 2024-04-18 23:41:17 +02:00
daniel156161 f98430462b use new game board functions 2024-04-18 22:21:57 +02:00
daniel156161 c26824aeaf create a game board class 2024-04-18 22:20:07 +02:00
daniel156161 87690177a5 make find_safe_positions function be useable for more posisions 2024-04-18 19:52:19 +02:00
daniel156161 8a2a62ef57 add env variable for the server class debug 2024-04-18 17:16:23 +02:00
daniel156161 5796ce0a6e add function to calculate where the new snake body is with or with no tail based on the move that is taken 2024-04-18 17:14:49 +02:00
daniel156161 5522a52227 set TemplateSnake as default loaded snake 2024-04-18 16:59:28 +02:00