Commit Graph

17 Commits

Author SHA1 Message Date
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