Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Tic Tac Toe game

astro, solid-js, tailwind-css
Tsukimi•820
@hikawi
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'm most proud of having persistent states where the game is saved in the browser, and some custom additions to the challenge to make it more interesting.

What challenges did you encounter, and how did you overcome them?

I had a lot of troubles syncing data between components, for example, making the computer make a move when it has to go first, I added a reactive state specifically for starting the game, checking if it's the user's or CPU's turn and make a move accordingly.

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

I wonder if some controls are good enough for accessibility, like using 1-9 to choose the boxes, but the boxes are "buttons" and probably not the 'right' HTML element for this purpose. What should I add/modify for accessibility?

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 Tsukimi'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
  • Use cases

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