Skip to content

Instantly share code, notes, and snippets.

View christopher-tanaka-code's full-sized avatar

Christopher Tanaka christopher-tanaka-code

  • Miami, FL
View GitHub Profile
@christopher-tanaka-code
christopher-tanaka-code / gist:fcb2697306bbac54bf41711dc41545ae
Created April 29, 2026 23:51
angelica-challenge-christopher-solution
function computePolkadotScore(asciiArt) {
const lines = asciiArt.split("\n");
// Eye line: the first upper-half line with Angelica's two pupil bullets.
const eyeLineIndex = lines.findIndex((line, index) => {
return index < lines.length / 2 && [...line].filter(ch => ch === "•").length >= 2;
});
if (eyeLineIndex === -1) {
throw new Error("Could not find Angelica's pupils.");