Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.47 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.47 KB

Simple Tic-Tac-Toe Game

This is a basic web-based tic-tac-toe game that allows two players to play tic-tac-toe on a single device. It's built using HTML, CSS, and JavaScript.

Features

  • 3x3 game grid
  • Two player gameplay (X and O)
  • Restart game functionality
  • Responsive design for desktops

Getting Started

Prerequisites

You will need a modern web browser to run this game. Recommended browsers include:

  • Google Chrome
  • Mozilla Firefox
  • Safari
  • Microsoft Edge

Running the Game

To run the game, simply clone this repository or download the files to your local machine. Open the index.html file in your preferred web browser to start playing.

File Structure

  • index.html - The main HTML document containing the structure of the game.
  • styles.css - Contains all the styling for the game.
  • script.js - Contains all the logic required to handle game operations.

How to Play

  1. The game starts with player X's turn.
  2. Click on any empty cell to make a move.
  3. Play alternates between X and O.
  4. The first player to align three of their marks (X or O) vertically, horizontally, or diagonally wins.
  5. Click the "Restart Game" button to clear the board and start a new game.

Contributing

Feel free to fork this repository and submit pull requests. You can also open issues if you find any bugs or have feature suggestions.

License

This project is free to use and does not currently have a specific license.

Notes

I'm making an update on my iPad.