aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/player.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/game/player.go b/go/game/player.go
index b4b7bd8b..845340a3 100644
--- a/go/game/player.go
+++ b/go/game/player.go
@@ -27,6 +27,9 @@ type Player struct {
knownStores map[Position]bool
}
+// Creates a new player
+// Must be called after a map was loaded to find
+// the players Store.
func NewPlayer(id int, name string, deck *Deck, gameState *LocalState, color color.Color) *Player {
store := NewStore()
deck.MoveInto(store)