Skip to content

A classic Tic-Tac-Toe (XO) game built with HTML, CSS, and JavaScript. Features a responsive board, interactive gameplay, win detection, and a restart option.

Notifications You must be signed in to change notification settings

Iqbolshoh/javascript-xo-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe (XO) game

This is a simple Tic-Tac-Toe (XO) game implemented using HTML, CSS, and JavaScript. The game allows two players to play against each other on a 3x3 grid.

Preview

Desktop

Desktop Preview

Mobile

Mobile Preview

Features

  • Responsive Design: The game board adjusts to different screen sizes.
  • Interactive Game Board: Players can click on cells to mark X or O.
  • Winner Highlight: The winning combination of cells is highlighted with a green color.
  • Draw Detection: If the game ends in a draw, a message is displayed.
  • Play Again: A restart button is provided to reset the game and play again.

Installation

To set up and run the XO Game on your local machine:

  1. Clone the Repository:
    git clone https://github.com/Iqbolshoh/javascript-xo-game.git
  2. Navigate to the Project Directory:
    cd javascript-xo-game
  3. Open the index.html File: You can open the index.html file in any modern web browser to start playing the game. Simply double-click the file or open it using your browser's "Open File" option.

Technologies Used

HTML CSS JavaScript

Contributing

Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

Connect with Me

I love connecting with new people and exploring new opportunities. Feel free to reach out to me through any of the platforms below:

GitHub Telegram LinkedIn instagram WhatsApp Twitter Email

About

A classic Tic-Tac-Toe (XO) game built with HTML, CSS, and JavaScript. Features a responsive board, interactive gameplay, win detection, and a restart option.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published