Initial commit.
No tests. Not complete.
This commit is contained in:
16
cardsim/player.go
Normal file
16
cardsim/player.go
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user