The Kilobyte’s Gambit (Chess)

Play chess against the computer running JavaScript code only 1K in size. That’s a tiny 1,024 byte program. It’s no chess grandmaster, but you’ll be amazed with its game what with its minuscule code footprint. Can you beat it?
https://vole.wtf/kilobytes-gambit/