Skip to content

Instantly share code, notes, and snippets.

View Prashanth-090's full-sized avatar

Prashanth Bandari Prashanth-090

View GitHub Profile
@Prashanth-090
Prashanth-090 / .py
Created April 30, 2026 16:12
compute_polkadot_score.py
def computePolkadotScore(ascii_art: str) -> int:
lines = ascii_art.splitlines()
# --- Detect pupils ---
pupil_chars = sum(line.count("•") for line in lines)
# --- Detect lips range (robust) ---
lips_start = lips_end = None
for line in lines:
if ";" in line and "-" in line: