cmd: join ship groups

This commit is contained in:
Ilia Denisov
2025-11-13 21:53:10 +03:00
parent 33efa86065
commit 126f381b04
10 changed files with 661 additions and 153 deletions
+6 -4
View File
@@ -10,10 +10,12 @@ import (
)
type Game struct {
ID uuid.UUID `json:"id"`
Age uint `json:"turn"` // Game's turn number
Map Map `json:"map"`
Race []Race `json:"races"`
ID uuid.UUID `json:"id"`
Age uint `json:"turn"` // Game's turn number
Map Map `json:"map"`
Race []Race `json:"races"`
ShipGroups []ShipGroup `json:"shipGroup,omitempty"`
Fleets []Fleet `json:"fleet,omitempty"`
}
func (g Game) Votes(raceID uuid.UUID) float64 {