Deck
A deck shuffled and drawn, a turn's mana, a spell card played from the hand, fatigue
pile ... grantsstreamshuffledraw ... tomove source tousingA card drawn and played, and a turn's start, lifted from the card slice's content\rules.ledger (the piles, Starting, Turns, Drawing, the Card template and the Hero) and its spell from content\firebolt.ledger. A card is an item in one of its hero's piles; in the hand it grants its hero the ability that plays it. The start shuffles the deck and draws three; each turn gives a crystal, up to 10, fills the mana to the crystals and draws one: from the deck's top, into the discard where the hand holds 10, and from an empty deck fatigue, one more each time. Played, a firebolt costs 2 mana, goes to the discard and deals 3. The game makes each deck's cards into its hero's Deck and raises the events.
# A card drawn and played, and a turn's start, lifted from the card slice's content\rules.ledger (the piles, Starting,# Turns, Drawing, the Card template and the Hero) and its spell from content\firebolt.ledger. A card is an item in one# of its hero's piles; in the hand it grants its hero the ability that plays it. The start shuffles the deck and draws# three; each turn gives a crystal, up to 10, fills the mana to the crystals and draws one: from the deck's top, into# the discard where the hand holds 10, and from an empty deck fatigue, one more each time. Played, a firebolt costs 2# mana, goes to the discard and deals 3. The game makes each deck's cards into its hero's Deck and raises the events.rate 10link team ownerallegiance teamstream Shufflepile Deck Discardpile Hand grantsstat MaxHealthpool Health max MaxHealth wholepool Crystals max 10 wholepool Mana max 10 wholepool Fatigue wholedamage Healthtags Body Card Play Heroevent GameStarted TurnStarted DrawCardturn TurnStartedeffect Starting after GameStarted of holder shuffle holder.Deck using Shuffle repeat 3 raise DrawCard of holdereffect Turns after TurnStarted of holder gain Crystals 1 set Mana holder.Crystals raise DrawCard of holdereffect Drawing after DrawCard of holder if holder.Deck == 0 gain Fatigue 1 deal holder.Fatigue to holder sourceless else if holder.Hand >= 10 draw 1 from holder.Deck to holder.Discard else draw 1 from holder.Deck to holder.Handtemplate archetype Card(power) tags Card grants powerability PlayFirebolt tags Play target one having Body cost Mana 2 move source to holder.Discard deal 3 to targetarchetype FireboltCard from Card(PlayFirebolt)archetype Sidearchetype Hero tags Body Hero base MaxHealth 30 full Health pools Crystals Mana Fatigue has Starting has Turns has Drawingcatalog deck.ledger# The deck's numbers, from Starting (three draws), Turns (a crystal, the mana filled, a draw), Drawing and# PlayFirebolt (2 mana, 3 damage); a hero's 30 Health.play "the start shuffles a deck of 5 and draws 3; a turn gives a crystal, fills the mana to it and draws 1" seed 1 make a Side make h Hero with team = a make c1 FireboltCard make c2 FireboltCard make c3 FireboltCard make c4 FireboltCard make c5 FireboltCard move c1 to h.Deck move c2 to h.Deck move c3 to h.Deck move c4 to h.Deck move c5 to h.Deck raise GameStarted of h expect h.Hand = 3 from content: Starting's three draws expect h.Deck = 2 from content: 5 less the three save raise TurnStarted of h expect h.Crystals = 1 from content: one a turn expect h.Mana = 1 from content: filled to the crystals expect h.Hand = 4 from content: 3 and the turn's draw expect h.Deck = 1 from content: 2 less the turn's drawplay "a firebolt in the hand is played for 2 at the other hero, 3 off its 30, and goes to the discard; with too little mana it is refused" make a Side make b Side make h Hero with team = a make e Hero with team = b make c1 FireboltCard move c1 to h.Hand raise TurnStarted of h act h PlayFirebolt at e using c1 expect refused CannotAfford raise TurnStarted of h act h PlayFirebolt at e using c1 expect done expect e.Health = 27 from content: 30 less 3 expect c1 in h.Discard expect h.Mana = 0 from content: two crystals' 2 less the bolt's 2play "an empty deck draws fatigue, 1 and then 2" make a Side make h Hero with team = a raise DrawCard of h expect h.Health = 29 from content: 30 less the first fatigue, 1 raise DrawCard of h expect h.Health = 27 from content: 29 less the second, 2