Quest 9 of 10 · 🎲 · Free · No setup
Tic Tac Toe
Build a 3×3 board, alternate turns, and detect wins with arrays. Classic logic practice with an instant preview.
- In-browser live preview
- Saved on this device
- Unlocks: Win logic — arrays, turns, and state checks
Part of Web Dev Quests · Prefer prompts? Vibe Code Studio →
Step: HTML
Game grid
Build a 3×3 board with buttons.
data-i stores each cell index so JavaScript knows which square was clicked.
Your quest
Add a scoreboard for X wins and O wins.
Edit HTML
HTML
Live preview