mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
gofmt: bring internal/ and cmd/ back to gofmt -l clean
Mechanical `gofmt -w ./internal ./cmd`. Mostly struct-field realignment that had drifted, plus a few trailing-newline fixes. No behaviour change — gofmt is semantics-preserving, and build/vet/test are green either side. Split out from the code-review fixes that follow so those stay reviewable instead of hiding inside a wall of realignment.
This commit is contained in:
@@ -39,28 +39,28 @@ type unoMultiPlayer struct {
|
||||
}
|
||||
|
||||
type unoMultiGame struct {
|
||||
id string
|
||||
roomID id.RoomID // games room
|
||||
ante float64
|
||||
players []*unoMultiPlayer // in turn order (includes bot)
|
||||
currentIdx int
|
||||
direction int // +1 or -1
|
||||
drawPile []unoCard
|
||||
discardTop unoCard
|
||||
topColor unoColor
|
||||
phase unoMultiPhase
|
||||
drawnCard *unoCard // card drawn this turn
|
||||
id string
|
||||
roomID id.RoomID // games room
|
||||
ante float64
|
||||
players []*unoMultiPlayer // in turn order (includes bot)
|
||||
currentIdx int
|
||||
direction int // +1 or -1
|
||||
drawPile []unoCard
|
||||
discardTop unoCard
|
||||
topColor unoColor
|
||||
phase unoMultiPhase
|
||||
drawnCard *unoCard // card drawn this turn
|
||||
pendingCard *unoCard // wild waiting for color
|
||||
|
||||
// Wild Draw Four challenge state
|
||||
wd4Player *unoMultiPlayer // who played the WD4
|
||||
wd4Victim *unoMultiPlayer // who can challenge
|
||||
wd4PrevColor unoColor // color before the wild was played
|
||||
turns int
|
||||
turnID int // monotonic, used to invalidate stale timers
|
||||
startedAt time.Time
|
||||
done bool
|
||||
bookDown bool
|
||||
turns int
|
||||
turnID int // monotonic, used to invalidate stale timers
|
||||
startedAt time.Time
|
||||
done bool
|
||||
bookDown bool
|
||||
|
||||
// No Mercy mode
|
||||
noMercy bool
|
||||
|
||||
Reference in New Issue
Block a user