This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function computePolkadotScore(asciiArt) { | |
| const lines = asciiArt.split('\n'); | |
| // ----------- 1. Find lips x-range ----------- | |
| // Lips are ~~~~~~ on the line containing "~~~~~~' ' `" | |
| // Stripping ' ` - from "~~~~~~' ' `" leaves ~~~~~~ | |
| // lipsStartX = first ~, lipsEndX = last ~ of that group | |
| let lipsStartX = -1; | |
| let lipsEndX = -1; | |