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.
Five Card Zones & LIFO Effect Stack
To keep state deterministic and bug-free, every CardInstance belongs to one of five explicit zones (CardZone):
deck— draw pile (running empty triggers incrementalfatigue).hand— cards currently held by the player or AI sage.limbo— transient casting zone while targeting spells or battlecries.board— active combat lane supportingtaunt,charge,divineShield,lifesteal,battlecry, anddeathrattle.bardo— the Bardo zone where defeated minions and resolved spells rest.
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):
- Pratyaksha (प्रत्यक्ष) — direct perception.
- Anumana (अनुमान) — logical inference (e.g., smoke on the hill implies fire).
- 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.dartwith 5 zones and LIFO stack. - 3-Pramana Enlightenment alternate win condition.
- Interactive
CcgDeckShowcaseScreen3D 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.