Skip to content

Niharika07-B/Tic-Toc-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Tic-Tac-Toe Game

A web-based Tic-Tac-Toe game built using HTML, CSS, and JavaScript.

Tic-Tac-Toe is a classic two-player game where players take turns marking X or O in a 3ร—3 grid. The goal is to get three of your symbols in a row โ€” horizontally, vertically, or diagonally. It's a fun and easy game that helps improve logical thinking and strategy skills.

This simple project was developed as part of a hands-on session in our college Data Club, guided by our seniors. It was an engaging way to learn the basics of web development and game logic.

Screenshot 2025-07-02 at 07 25 03


๐Ÿง  Game Overview

  • Two-player mode: X vs O
  • Highlights the winning combination
  • Displays the winner or a draw
  • Restart button to reset the game

๐Ÿ‘‰๐ŸฝLanguages

HTML CSS JavaScript


๐Ÿ–ผ๏ธ Screenshots

Screenshot 2025-07-02 at 07 22 43

Screenshot 2025-07-02 at 07 23 11


๐ŸŽฏ Play the Game

Wanna play my Tic-Tac-Toe? ๐Ÿ‘‰ Press here to play!


๐Ÿ“ Files

โ”œโ”€โ”€ index.html   # Game structure
โ”œโ”€โ”€ style.css    # Game styling
โ””โ”€โ”€ script.js    # Game logic


๐Ÿš€ How to Run

Option 1 โ€“ Clone via Git

  1. Clone the repository:

    git clone https://github.com/your-username/tic-tac-toe.git
    cd tic-tac-toe
  2. Open index.html directly in your browser (No installations needed โ€“ just open and play!)


Option 2 โ€“ Download ZIP

  1. Click the Code button on this repo and select Download ZIP.
  2. Extract (unzip) the folder.
  3. Open the folder in VS Code.
  4. Install the Live Server extension (if not already installed).
  5. Right-click index.html โ†’ Open with Live Server.
  6. Play the game in your browser.

โœจ Credits

This project was created during a Data Club activity in my 1st year of B.Tech, under the guidance of our seniors.
Special thanks to them for mentoring us and providing a great hands-on learning experience with web development.


โญ Support

If you like this repository or found it helpful, please give it a star โญ โ€” it really motivates me to keep creating and sharing more projects like this!
You can also fork it, try adding new features, and share your own version.


Happy documenting! ๐Ÿ’ป๐Ÿ“˜

About

๐ŸŽฎA fun, web-based Tic-Tac-Toe game built with HTML, CSS, and JavaScript. Play locally with two players, enjoy a clean interface, and learn the basics of web development and game logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors