snengame/player.go

18 lines
207 B
Go

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,
}
}