Design comparison
Solution retrospective
Game has thrree difficulty levels: Easy: AI's move is decided solely based on Math.random() Normal: AI's move is decided through the minimax algorithm Hard: AI's move is decided through the minimax algorithm
Feedback will be highly appreciated
Community feedback
- @zDevtutorPosted over 2 years ago
Hi @aleksFedotov, I really liked your approach to the game here. I did it using regular Math.random() and vanilla javascript. It's a nice feature to have a set of difficulties. I can try on that :). One thing I noticed here is that when the player plays against the CPU. The user is able to hover and click on the cell which got chosen before the CPU makes its move so this rewrites the CPU move.
Marked as helpful0@aleksFedotovPosted over 2 years agoThanks for pointing out, I going to try fix it soon@zDevtutor
0
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