Skip to content

RishiMaskare/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe-Game

A simple Tic Tac Toe game built using HTML, CSS, and JavaScript.

Features

Two-player gameplay

Interactive UI with buttons

Reset and New Game functionality

Win detection with a congratulatory message

How to Play

The game starts with Player 'O'.

Players take turns clicking on an empty box to place their symbol ('O' or 'X').

The game detects a winner based on standard Tic Tac Toe rules.

If a player wins, a message is displayed, and the board is disabled.

Click "Reset Game" or "New Game" to start over.

Technologies Used

HTML: Structure of the game board and elements.

CSS: Styling and layout of the game.

JavaScript: Handles game logic, turn-based moves, and win detection.

Files

index.html - The main HTML file containing the game structure.

style.css - The CSS file for styling the game.

script.js - The JavaScript file that manages game logic.

Setup and Usage

Download or clone the repository.

Open index.html in a web browser.

Play the game!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published