17 lines
360 B
Go
17 lines
360 B
Go
package cardsim
|
|
|
|
import "math/rand"
|
|
|
|
// Player stores all gameplay state for one player.
|
|
type Player[C StatsCollection] struct {
|
|
Stats C
|
|
Name string
|
|
Deck []Card[C]
|
|
Hand []Card[C]
|
|
HandLimit int
|
|
Rules *RuleCollection[C]
|
|
Rand rand.Rand
|
|
Turn int
|
|
PendingMessages []Message
|
|
}
|