Fix: show color; add bot [WIP]
This commit is contained in:
		| @@ -41,7 +41,7 @@ type Team struct { | ||||
| type Action struct { | ||||
| 	Actor      string | ||||
| 	ActorColor string | ||||
| 	Action     string // clue | guess | ||||
| 	Action     WordColor // clue | guess | ||||
| 	Word       string | ||||
| 	WordColor  string | ||||
| 	Number     string // for clue | ||||
| @@ -60,6 +60,7 @@ type Room struct { | ||||
| 	RedTeam       Team | ||||
| 	BlueTeam      Team | ||||
| 	Cards         []WordCard | ||||
| 	WCMap         map[string]WordColor | ||||
| 	Result        uint8 // 0 for unknown; 1 is win for red; 2 if for blue; | ||||
| 	BlueCounter   uint8 | ||||
| 	RedCounter    uint8 | ||||
| @@ -169,9 +170,9 @@ func (r *Room) RevealSpecificWord(word string) { | ||||
| } | ||||
|  | ||||
| type WordCard struct { | ||||
| 	Word     string | ||||
| 	Color    WordColor | ||||
| 	Revealed bool | ||||
| 	Word     string    `json:"word"` | ||||
| 	Color    WordColor `json:"color"` | ||||
| 	Revealed bool      `json:"revealed"` | ||||
| } | ||||
|  | ||||
| type GameSettings struct { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder