Skip to content

TicTacToe game built using HTML, CSS, and JavaScript. The game features functionality to reset the current game, start a new game, and display the winner or indicate if the game ends in a draw.

Notifications You must be signed in to change notification settings

arrenndajo/TicTacToe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe Game

TicTacToe game built using HTML, CSS, and JavaScript. It allows two players to take turns marking spaces on a 3x3 grid, aiming to get three of their symbols in a row, either horizontally, vertically, or diagonally, before the opponent does.

Features

  • Two Player Mode: Play against a friend locally on the same device.
  • Interactive UI: A clean and intuitive user interface that makes it easy to play.
  • Responsive Design: The game adapts to different screen sizes, allowing for a seamless experience across devices.
  • Win Detection: The game automatically detects when a player has won and displays the Winner of the game.
  • Reset Option: Reset the game board at any time to start a new game.
  • New Game: New game option to start a game after a result of the previous game.
  • Draw: If the result of the game is draw, it displays Draw.

How to Play

1. Open the index.html file in your web browser.

2. Choose whether "X" or "O" will start the game.

3. Click on an empty square to place your symbol.

4. Take turns with your opponent until one player wins or the game ends in a draw.

5. To start a new game, click the "Reset" button.

Technologies Used

  • HTML5
  • CSS3
  • JavaScript

Demo

Play the TicTacToe game using this link:

https://arrenndajo.github.io/TicTacToe-Game/

About

TicTacToe game built using HTML, CSS, and JavaScript. The game features functionality to reset the current game, start a new game, and display the winner or indicate if the game ends in a draw.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published