Skip to content

This project provides a web-based Tic Tac Toe game where two players can take turns to mark spaces on a 3x3 grid.

Notifications You must be signed in to change notification settings

NavikaAgarwal/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

A simple implementation of the classic Tic Tac Toe game using HTML, CSS, and JavaScript.

Features

  • Two Players: Play against a friend on the same device.
  • Responsive Design: Enjoy the game on various screen sizes.
  • Winning Logic: The game automatically checks for a winning combination after each move.
  • Game Reset: Start a new game with a click of a button.

Technologies Used

  • HTML: For structuring the game board and user interface.
  • CSS: For styling the game and making it visually appealing.
  • JavaScript: For implementing game logic, handling player moves, and checking for win/draw conditions.

How to Play

  1. Open the index.html file in your web browser.
  2. The game starts with Player 1 (X) making the first move.
  3. Players take turns marking an empty cell by clicking on it.
  4. The game announces the winner when a player has three marks in a row horizontally, vertically, or diagonally.
  5. If the board is filled and there is no winner, the game declares a draw.
  6. Click the "Restart" button to start a new game.

Development

To further develop or customize the game, you can modify the JavaScript code in the script.js file to add new features, improve the UI, or change the game's behavior.

About

This project provides a web-based Tic Tac Toe game where two players can take turns to mark spaces on a 3x3 grid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published