DEV Community

SHIVA-TIWARI2403
SHIVA-TIWARI2403

Posted on

I built a Tic Tac Toe game with HTML, CSS and JavaScript

Hi everyone! 👋

I'm a BCA student and I'm learning web development. As a practice project, I built a simple Tic Tac Toe game using HTML, CSS and JavaScript.

🎮 Play it here: https://shiva-tiwari2403.github.io/tic-tac-toe

💻 Source code: https://github.com/SHIVA-TIWARI2403/tic-tac-toe

What I used

  • HTML for the game board
  • CSS for the design
  • JavaScript for the game logic (turns, winner check, draw)
  • GitHub Pages to host it for free

What I learned

  • How to handle clicks and update the board with JavaScript
  • How to check winning combinations
  • How to publish a project online with GitHub Pages

Next steps

I want to add a score counter and a play-vs-computer mode.

Any feedback or suggestions are welcome. Thanks for reading! 🙂

Top comments (0)