Initial pass at Golden Pack.

This commit is contained in:
Greyson Parrelli
2026-07-24 07:47:05 -04:00
parent e74f983470
commit dd395f4bbf
27 changed files with 2770 additions and 150 deletions
+15 -5
View File
@@ -17,16 +17,26 @@ func SimulateBattle(round, prioritySeat int, deckA, deckB []Card, rollDie func()
{Name: "A", Seat: 0, Deck: append([]Card(nil), deckA...)},
{Name: "B", Seat: 1, Deck: append([]Card(nil), deckB...)},
},
// Rollouts never pause for a mid-battle decision; a fixed policy resolves
// them (Golden pack: Nurse Shark).
autoBattleDecide: true,
}
g.resolveBattle()
g.startBattle()
return g.Battle
}
// TierContents returns the full printed contents of a tier's shop deck
// public information from the box. Cards carry placeholder IDs; they are
// reference data, not live instances.
// TierContents returns the full printed contents of a tier's shop deck for the
// default pack. Cards carry placeholder IDs; they are reference data, not live
// instances.
func TierContents(tier int) []Card {
scratch := &Game{}
return TierContentsForPack(DefaultPack, tier)
}
// TierContentsForPack returns a pack's printed tier contents — public
// information from the box. Used by the AI, which decides from a View that
// names its pack.
func TierContentsForPack(pack string, tier int) []Card {
scratch := &Game{Pack: pack}
scratch.buildShopDecks()
if tier < 1 || tier > len(scratch.ShopDecks) {
return nil