Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP W3.CSS C C++ C# HOW TO BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT SWIFT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING HTML & CSS BASH RUST TOOLS

Projects

Projects Home Personal Page Profile Card Collection JavaScript Toolkit Portfolio Recipe Page CSS Landing Page JavaScript Data Toolkit Interactive Todo List Mobile Calculator Weather Dashboard Browser Puzzle Game E-commerce Frontend Analytics Dashboard

Web Project: Browser Puzzle Game

Complete each step in the editor and watch the result as your page takes shape.

Build Browser Puzzle Game, step-by-step

Create an engaging puzzle game.

Add multiple difficulty levels and a scoring system.

Medium · +220 XP · HTML CSS JavaScript

What you will use in this project

  • Game state machines
  • CSS transitions and 3D transforms
  • High-score persistence with localStorage
  • Event delegation in a grid

How it works

  1. 1 Follow the steps on the left. Each dot in the stepper bar is one focused chunk of work. Read the instructions, the “What to do” checklist, and any hints.
  2. 2 Write your code on the right. The editor is yours. Files auto-save as you type. Use the Preview tab to see your work in action.
  3. 3 Click Check code when you’re ready. We grade your work against the step’s rubric and tell you exactly what passed and what still needs work.
  4. 4 Pass a step to move on. Build the project cumulatively. Pass every step to complete it and earn the full XP.

How it’s graded

This project is broken into 11 steps. Each one has its own pass criterion. Click Check code on every step to verify your progress and earn the full +220 XP.

# Step & pass criterion Weight
1 Page shell Stats, board, reset present 10 pts
2 Difficulty selector Three difficulty buttons 10 pts
3 Style the board Board styled as grid 5 pts
4 Style tile states Tile flipped or matched state styled 5 pts
5 Define the deck Code shuffles the deck 10 pts
6 Render the board JS builds tiles into #board 10 pts
7 Click to flip Tile click handler wired 5 pts
8 Match or flip back
  • Flip and match via classList
  • setTimeout for mismatch flip-back
25 pts
9 Stats and timer Moves and timer update 10 pts
10 Difficulty and reset Difficulty and reset clicks wired 5 pts
11 High score High score in localStorage 5 pts
index.html
Browser Puzzle Game preview
← Browse all projects


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.