start games with player ids

Fixes #1.
This commit is contained in:
2024-01-21 04:15:03 -06:00
parent 4f6e00bd3d
commit bc1685d5ee
2 changed files with 5 additions and 11 deletions

View File

@@ -24,9 +24,13 @@ type Game struct {
}
// New creates a new game started at round 1.
func New() *Game {
func New(dealer, challenger player.ID) *Game {
g := &Game{
RNG: NewRNG(),
PP: [2]Player{
{ID: dealer},
{ID: challenger},
},
}
g.StartRound()
return g