CardSimEngine/cardsim/player.go
Kistaro Windrider 45bbfe4e8f
Initial commit.
No tests. Not complete.
2023-03-26 23:40:44 -07:00

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
}