Commit Graph

38 Commits

Author SHA1 Message Date
daniel156161 4547e3443b add redis backend for storage of gameboards 2026-04-04 12:07:05 +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 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 19e4aee454 rework logging and add metrics and prometheus metrics 2026-04-03 18:26:31 +02:00
daniel156161 37de34cc5e update to store and curate data correctly 2026-04-03 15:43:19 +02: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 61721a7eb6 change request endpoints to async 2025-05-27 13:28:08 +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 b57ae5eab2 store all games and set standard when gameboard map is empty 2024-05-07 19:00:33 +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 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 83bcf4f194 make new LocalStorage Class and move save functions into it 2024-05-05 17:02:18 +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 5743f5c111 print moves only if debug is on and better error handeling if running game into found in dict 2024-04-18 08:23:10 +02:00
daniel156161 4620ee31eb split class name and print out with spaces 2024-04-17 20:09:34 +02:00
daniel156161 9103e3e139 store history into data folder 2024-04-17 19:57:39 +02:00
daniel156161 04eef9229c not store config file just read if exist or overwrite default_snake_config 2024-04-17 19:53:02 +02:00
daniel156161 cceded8468 add function to overwrite snake config when its set as env and use smaller python alpine container as base 2024-04-17 19:29:18 +02:00
daniel156161 8c57e48f60 if got Key Error in move function create a new snake and calculate next best move 2024-04-17 15:55:37 +02:00
daniel156161 12ac257d19 add option to overwrite color with env param 2024-04-17 13:43:58 +02:00
daniel156161 e3d7cccb64 remove my_snake output into server console 2024-04-16 00:35:46 +02:00
daniel156161 38ba576de9 add .env var to set no save when win and turns are less or the same as the var 2024-04-15 03:29:20 +02:00
daniel156161 51108ce21c change game storage to save it into a nice folder structure 2024-04-14 23:32:49 +02:00
daniel156161 9869f14bbe Output Turns in server logs when doing moves 2024-04-14 21:32:10 +02:00
daniel156161 f472ddd0d9 fix error when creating GameStorage object 2024-04-13 12:06:51 +02:00
daniel156161 b48cfe811e add methode to create more snake and use them when more games are running 2024-04-13 10:48:08 +02:00
daniel156161 615acfc75a store game history into dict to not mix data with other games 2024-04-13 10:02:51 +02:00
daniel156161 74b1e79a90 store what snake win the game 2024-04-13 02:37:05 +02:00
daniel156161 0027476c4e move host, port and debug to server run function make .env variables writen in CAPS 2024-04-13 01:22:54 +02:00
daniel156161 b3d98dbdeb add path to GameStorage and add option to enable store game state (default its disabled) 2024-04-13 01:09:26 +02:00
daniel156161 91e0d8fd1b move server into own class and remove handlers dict 2024-04-13 00:57:55 +02:00