snengame/player.go

18 lines
207 B
Go
Raw Normal View History

2021-07-15 19:26:57 -04:00
package main
type Player struct {
Name string
Id int
Hand []Card
Life int
}
func NewPlayer(name string, id int) *Player {
return &Player{
Name: name,
Id: id,
Hand: []Card{},
Life: 3,
}
}