This INSANE Regex Hack Solves Chess in Seconds—You Won’t Believe How!

Published: 17 January 2024
on channel: TheRandomCoder
51,004
2.4k

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: https://www.codewars.com/kata/5e28ae3...

My solution (please upvote!!):
https://www.codewars.com/kata/reviews...

Inspired by Tic Tac Toe challenge: https://www.codewars.com/kata/582e045...

Website: https://therandomcoder.com
GitHub: https://github.com/williamforty
Facebook:   / therandomcoder  


Watch video This INSANE Regex Hack Solves Chess in Seconds—You Won’t Believe How! online, duration hours minute second in high quality that is uploaded to the channel TheRandomCoder 17 January 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 51,004 times and liked it 2.4 thousand visitors.