aboutsummaryrefslogtreecommitdiff
path: root/go/game/player.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/player.go')
-rw-r--r--go/game/player.go5
1 files changed, 5 insertions, 0 deletions
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
+}