Skip to content

About

A classic player-versus-player Tic-Tac-Toe game built entirely with front-end web technologies.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game


Introduction

This project is a classic Tic-Tac-Toe game developed as a simple, interactive front-end application. It is a two-player game built using core web development technologies, showcasing fundamental logic and DOM manipulation.


How to Play

  • The game is played on a 3x3 grid.
  • Two players take turns marking a space with their symbol (X or O).
  • The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
  • If all nine squares are filled and no player has three marks in a row, the game ends in a draw.

Features

  • Player vs. Player gameplay.
  • Automatic win, loss, and draw detection.
  • A clear visual display of the game board.
  • A "Restart Game" button to reset the board.

Technologies Used

  • HTML: For the game's structure and layout.
  • CSS: For styling the game board and visual design.
  • JavaScript: For the game's logic, player turns, and win condition checks.

How to Run Locally

  1. Clone the repository: git clone https://github.com/mkyaduvanshi555/Tic-Tac-Toe.git
  2. Navigate to the project folder: cd Tic-Tac-Toe
  3. Open the file: Simply open index.html in your web browser to start playing.

About

A classic player-versus-player Tic-Tac-Toe game built entirely with front-end web technologies.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages