From f97d91ac74ddb22edf1786a3c1b7e76940a4dd75 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 6 Jul 2025 07:47:59 +0300 Subject: [PATCH] Fix: llm mime to set openthisturn to 0 --- Makefile | 1 + llmapi/main.go | 1 + todos.md | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 628d008..f5e0f1e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .PHONY: all init deps install test lint run stop run: + make migrate-up go build ./gralias start diff --git a/llmapi/main.go b/llmapi/main.go index d358c18..5e0749c 100644 --- a/llmapi/main.go +++ b/llmapi/main.go @@ -257,6 +257,7 @@ func (b *Bot) BotMove() { if err != nil { b.log.Warn("failed to parse bot given limit", "mimeResp", mimeResp, "bot_name", b.BotName) } + room.OpenedThisTurn = 0 // in case it is not room.ThisTurnLimit = uint8(guessLimitU64) if room.ThisTurnLimit == 0 { b.log.Warn("turn limit is 0", "mimeResp", mimeResp) diff --git a/todos.md b/todos.md index a808411..3d9fd62 100644 --- a/todos.md +++ b/todos.md @@ -31,6 +31,7 @@ - possibly turn markings into parts of names of users (first three letters?); - at game creation list languages and support them at backend; - sql ping goroutine with reconnect on fail; +- player stats: played games, lost, won, rating elo, opened opposite words, opened white words, opened black words. #### sse points - clue sse update; @@ -74,3 +75,6 @@ - backlog shows white word with opposite color; - bot actions are not recorder; - bot recieves opp-color clue because of it ^; + +- bot mime makes a clue -> no update in the room for players; +- red moves after bot gave (metal - 3) ended after two guesses (showed in logs, that opened 3. double click on the same card? or somewhere counter is not dropped?); the first guess moved counter to 2, in logs only two requests as expected;