diff options
Diffstat (limited to 'go/game/player.go')
| -rw-r--r-- | go/game/player.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/go/game/player.go b/go/game/player.go index 20ac13a5..78ba69a7 100644 --- a/go/game/player.go +++ b/go/game/player.go @@ -1,5 +1,9 @@ package game +import ( + "image/color" +) + const ( MAX_DRAW int = 3 ) @@ -12,10 +16,11 @@ type Player struct { Deck *Deck Ressource int gameState *State + Color color.Color } -func NewPlayer(id int, name string, deck *Deck, gameState *State) *Player { - p := Player{id, name, NewHand(), NewDiscardPile(), deck, 0, gameState} +func NewPlayer(id int, name string, deck *Deck, gameState *State, color color.Color) *Player { + p := Player{id, name, NewHand(), NewDiscardPile(), deck, 0, gameState, color} return &p } |
