Feat: card counter
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user