Solving Fossil's ASCII art CAPTCHA in 171 characters

I recently stumbled upon what might be the most charmingly naive CAPTCHA implementation I've ever seen: Fossil SCM's text-based CAPTCHA. It renders hex digits as ASCII art using unicode block characters, and asks users to type what they see. You can find a live example here.
Here's what 69B34B04 looks like:
██████ ██████ ████████ ██████ ██ ████████ ██████ ██
██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ████ ████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
████████ ████████ ████████ ████ ██ ██ ████████ ████ ██ ██ ██
██ ██ ██ ██ ██ ██ ██████████ ██ ██ ██ ██ ██████████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██████ ████████ ██████ ██ ████████ ██████ ██ My immediate thought was to try and write a solver for it for fun, but while doing so I wondered how small the solver could possibly go. Having never done any sort of code golfing before, this seemed like a good excuse to try.
评论
?
参与讨论