انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Web: home
0. Lab tour1
1. HTML: the page's content7
2. CSS: the page's look6
3. JavaScript: the actions7
4. The project: the to-do list3
5. Pro CSS: shadows and movement5
6. Arrays and building the page with code3
7. Events and forms3
8. Objects and time3
9. Canvas: drawing and games3
10. The final project: the memory game3

The idea and the plan

Section 10: The final project: the memory gameLesson 10.1 · ⏱ 7 min
🎯 Project goal
8 cards face down with 4 pairs. You turn over two cards: if they match they stay open, otherwise they turn back. You win when you find the four pairs.
  • HTML: a title, the tries counter, and an empty board.
  • CSS: a Grid of 4 columns, and a colour for each state: face down, open and done.
  • JavaScript: the emoji array twice, then we shuffle it and make a button for each card.
A wrong try: 🍉 and ⚽ don't match, so they will turn back
A wrong try: 🍉 and ⚽ don't match, so they will turn back
Finished the lesson? Mark it so your progress counts.