Evil Regex Hacking in Codewars - An Outrageous Solution to Find if a King is in Check
In this video I share with you my solution for the CodeWars “Is the King in check?“ challenge. Inspired by a recent tic-tac-toe challenge, I imposed an additional constraint to use a regex to determine if the king is in check. The result was a satisfying and somewhat mind-blowing one liner!
Codewars challenge:
My solution (please upvote!!):
Inspired by Tic Tac Toe challenge:
Website:
GitHub:
Facebook:
1 view
333
87
10 months ago 00:13:57 1
Evil Regex Hacking in Codewars - An Outrageous Solution to Find if a King is in Check
3 years ago 00:04:36 1
Why “(?:\s|.)*“ is a bad pattern to match any character including line breaks