Responsive React Game with useEffect Logic & Math.PI Positioning – Roc

Solution retrospective
The most that I proud of:
- The use of React Hook
(useReducer)
- Adding title screen and animation with Framer Motion
- Adding features Dark/Light Theme and creating a switch button that changes the game mode from Easy to Hard
- Creating the rule for ROSHAMBO gameplay using
if/else statement
withuseEffect
The challenges that I encounter on this challenge was:
- Thinking what is the optimal way of creating a rule and logic for the gameplay of ROSHAMBO
- How to design the pick item in a circular pattern and when the bonus/hard mode is active, how can it look like a pentagon. (This is where I found out that we can set position to each item using Math.PI)
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on ChristianFate'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