Submitted over 1 year ago
Four Games, React, Tailwind, framer-motion, recoil
@kamiliano1
Design comparison
SolutionDesign
Solution retrospective
This was the most challenging project so far. I had problems with creating proper logic for checking who is the winner. The hardest was with diagonal checking. I've created 3 separate functions for this,
checkRows(); checkColumns(); checkDiagonals();
each of them is creating a new corresponding array, and this array is used with
checkWinner([arrayToCheck]);
to check if the actual row, column, or diagonal is the winner.
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