Fix: show-color
This commit is contained in:
@ -376,12 +376,14 @@ func (r *Room) GuesserView() {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Room) RevealSpecificWord(word string) {
|
||||
func (r *Room) RevealSpecificWord(word string) uint32 {
|
||||
for i, card := range r.Cards {
|
||||
if card.Word == word {
|
||||
r.Cards[i].Revealed = true
|
||||
return card.ID
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type WordCard struct {
|
||||
|
Reference in New Issue
Block a user