16 lines
217 B
Go
16 lines
217 B
Go
|
package tome_game
|
||
|
|
||
|
import (
|
||
|
. "git.saintnet.tech/tomecraft/tome_lib"
|
||
|
)
|
||
|
|
||
|
func NewPlayer(name string, id int) *Player {
|
||
|
return &Player{
|
||
|
Name: name,
|
||
|
Id: id,
|
||
|
Hand: []*Card{},
|
||
|
Life: 3,
|
||
|
Ready: false,
|
||
|
}
|
||
|
}
|