Follow along as I solve this live coding interview using React.js and Typescript.
View Code on GitHub:
github.com/the...
Coding Challenge Rules:
Create a memory game where users have to match cards into pairs.
Rules:
Users are presented with 10 pairs of matching cards (20 cards total) in random order.
The cards are displayed for 3 seconds, then they all flip over to hide their values.
Users can turn over 2 cards at a time. a. If the cards match, they should indicate a match, and stay turned over. b. If the cards don't match, they should both be flipped back over.
The user continues this methodology until all the cards are solved.
Tasks to complete:
Create a methodology for the cards to be displayed to the screen with 10 matching pairs in random order.
Create a way for the cards to be "flipped" from front to back.
Display the cards (face-up) for 3 seconds at the beginning and then flip them all face-down.
Allow two cards (at most) to be flipped at a time and, a. if they match, indicate a match and keep them flipped up. b. if they don't match flip them back over.
Allow the restart button to restart the application.
You have 30 mins
Негізгі бет React Live Coding Test | Memory Game /w TypeScript (Intermediate/Senior) FAANG
No video
Пікірлер: 14