From a3ca136cd776ff0089dc33e401d1fc474dc17138 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 8 Sep 2025 15:38:07 +0200 Subject: support explicitly winning and implement Approach Supremacy! --- go/game/player.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'go/game/player.go') diff --git a/go/game/player.go b/go/game/player.go index b3cdfe0f..09488a32 100644 --- a/go/game/player.go +++ b/go/game/player.go @@ -16,6 +16,7 @@ type Player struct { Resource int DrawPerTurn int Conceded bool + Won bool Hand *Hand DiscardPile *DiscardPile Deck *Deck @@ -323,3 +324,7 @@ func (p *Player) concede() { p.Conceded = true p.gameState.broadcastNotification(newConcededNotification(p)) } + +func (p *Player) win() { + p.Won = true +} -- cgit v1.2.3