Design comparison
SolutionDesign
Solution retrospective
I found it challenging to code the clever CPU move set. To get it working, I went with a brute force approach where the CPU checks rows, cols, and diagonals for moves to make, opponent's moves to block, and win requirements. I am curious if there is a more optimized way to do this.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord