Shastrartha CCG: Zones, LIFO Stack, Darshanas, Pramanas & 3D Inspection

Inside Sutra's card engine: a strict 5-zone card lifecycle, LIFO effect resolution, two distinct paths to victory, and an interactive 3D deck showcase.

Shastrartha: Philosophical Debate as a Card Duel

In classical India, shastrartha was a formal public debate where scholars prevailed through precision of argument and valid means of knowledge. We modeled this structure directly in ccg_engine.dart.

Each side begins with 24 HP (clarity of mind) and mana ramping from 1 to 8. Players summon sages, guardians, and spells onto a two-lane board, with two ways to win: reduce your opponent's HP to zero, or unite all 3 Pramanas of Enlightenment.

Shastrartha CCG duel board in Sutra
Duel board: minions, ramping mana, keyword badges, and Pramana indicators.
Interactive 3D deck box and card list
3D Deck Showcase for Aranya Rahasya: rotate the deck box and inspect the mana curve.

Five Card Zones & LIFO Effect Stack

To keep state deterministic and bug-free, every CardInstance belongs to one of five explicit zones (CardZone):

All battlecries, deathrattles, and spell effects resolve through a LIFO effect stack (StackItem), ensuring chained triggers resolve cleanly in reverse-cast order.

Three Darshanas & Three Pramanas

Every card belongs to one of three philosophical schools (Darshanas): Vedanta, Sankhya, or Nyaya. Insight cards also grant one of three Pramanas (valid means of knowledge):

  1. Pratyaksha (प्रत्यक्ष) — direct perception.
  2. Anumana (अनुमान) — logical inference (e.g., smoke on the hill implies fire).
  3. Shabda (शब्द) — authoritative testimony.

Collecting all three Pramanas in a single match triggers an immediate Enlightenment victory, rewarding control and insight decks even against high-HP bosses.

3D Card Inspection & Shuka's Commentary

Long-pressing or tapping any card — including enemy minions on the board — opens a 3D inspection view. Players can examine the Living Miniature artwork, read primary-source philosophy notes, and hear a witty shukaComment from Shuka the parrot.

Done

  • Complete ccg_engine.dart with 5 zones and LIFO stack.
  • 3-Pramana Enlightenment alternate win condition.
  • Interactive CcgDeckShowcaseScreen 3D box and 3D card inspector.

In Progress

  • Smarter AI heuristics so sage bosses actively contest your 3rd Pramana.
  • Live debate event log (CcgEventLog) pinned to the board edge.