Feat: card counter

This commit is contained in:
Grail Finder
2025-05-10 14:35:24 +03:00
parent 35e215e26f
commit 321b79b258
6 changed files with 51 additions and 0 deletions

View File

@ -70,6 +70,8 @@ func HandleHome(w http.ResponseWriter, r *http.Request) {
if fi != nil && fi.Room != nil && fi.State != nil {
if fi.State.Role == "mime" {
fi.Room.RevealAllCards()
} else {
fi.Room.UpdateCounter()
}
}
if fi != nil && fi.Room == nil {