Files
tarot/debug_paths.py
nose e3747555bf df
2025-12-05 03:41:16 -08:00

28 lines
675 B
Python

from tarot.tarot_api import Tarot
print("Initializing Tarot...")
# Force initialization
Tarot._ensure_initialized()
Tarot.tree._ensure_initialized()
print("Checking Paths...")
paths = Tarot.tree.path()
print(f"Found {len(paths)} paths")
found_aleph = False
for p in paths.values():
print(f"Path {p.number}: {p.hebrew_letter} -> {p.tarot_trump}")
if p.hebrew_letter == "Aleph":
found_aleph = True
if not found_aleph:
print("Aleph path not found!")
else:
print("Aleph path found.")
print("Checking Cards...")
cards = Tarot.deck.card.filter()
print(f"Found {len(cards)} cards")
fool = Tarot.deck.card.filter(name="Fool")
print(f"Fool card: {fool}")