Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Tic tac toe game with minimax algorithm for the CPU player

accessibility
P
Eli Silk•1,110
@elisilk
A solution to the Tic Tac Toe game challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I loved all the user interactivity of this challenge, and implementing a more sophisticated CPU-player algorithm. I'm also proud of the system that I built for the CSS for the icons and boxes, since those were elements reused throughout the challenge and I wanted to be able to reuse the CSS accordingly.

What specific areas of your project would you like help with?

My JS is disorganized at the moment, as I was trying a bunch of things and different approaches. So I should probably take some time to clean it up and refactor. I'd love to hear how others handled keeping track of the game state and all the other scripting parts of the challenge.

I do have a small question about why the "O" svg icons seem to be cut off a little bit. Anyone have thoughts?

And I am new to animations/transitions, and so would appreciate feedback on how I did those, and how they could be improved.

I'm also up for any other kind of feedback. Thanks in advance.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Eli Silk's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License