Initial commit.

No tests. Not complete.
This commit is contained in:
2023-03-26 23:40:44 -07:00
parent d820204e7f
commit 45bbfe4e8f
12 changed files with 892 additions and 0 deletions

16
cardsim/player.go Normal file
View 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
}