Curious snippet of code from the official macOS chess app | Hacker News Reader