/tic-tac-toe

This is Tic Tac Toe game using HTML, CSS and Javascript.

Primary LanguageJavaScript

Tic Tac Toe Game

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

How to Play

  • The game is played between two players: Player X and Player O.
  • Players take turns clicking on the boxes to place their mark (X or O) in the grid.
  • The first player to align three of their marks horizontally, vertically, or diagonally wins the game.
  • If all boxes are filled and no player has aligned three marks, the game ends in a draw.

Screenshot

image

Features

  • Player turns are indicated by the color of the marks: X is red, O is green.
  • A message is displayed to announce the winner or if the game ends in a draw.
  • Reset and New Game buttons to start over or begin a new game.

Getting Started

You can play the game https://tic-tac-toe-rishika-2005.netlify.app/ where it has been deployed. If you want to access the code, you can download the index.html file and open it in your web browser to start playing.