diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-19 22:22:46 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-21 15:20:22 +0100 |
| commit | b8bdd9d0419bab8ee0a7dd4b6e9fb1df7fecf221 (patch) | |
| tree | 392dee0e299be6b6370ba911341fd786fa9111f1 /logic/player.go | |
| parent | f08b6e39f4157dc209e30407909b879caf6760e0 (diff) | |
| download | goffel-b8bdd9d0419bab8ee0a7dd4b6e9fb1df7fecf221.tar.gz goffel-b8bdd9d0419bab8ee0a7dd4b6e9fb1df7fecf221.zip | |
move network code from uis to net
logic: add NewPlayer function
Diffstat (limited to 'logic/player.go')
| -rw-r--r-- | logic/player.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/player.go b/logic/player.go index 31aa5d0..0642495 100644 --- a/logic/player.go +++ b/logic/player.go @@ -7,3 +7,7 @@ type Player struct { Name string Score Score } + +func NewPlayer(name string) Player { + return Player{name, NewScore()} +} |
