Skip to content

Arijit-017/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sure, here's a README.md file for your Tic Tac Toe project:


Tic Tac Toe

This is a simple Tic Tac Toe game implemented using HTML, CSS, and JavaScript. The game allows two players to play against each other and highlights the winning line with a strikethrough effect when one player wins.

Table of Contents

Features

  • Two-player gameplay
  • Turn indicators
  • Winning line strikethrough effect
  • Reset button to start a new game

Getting Started

To get a local copy up and running, follow these steps:

Prerequisites

You only need a web browser to run this project.

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/tic-tac-toe.git
  2. Open the project folder:
    cd tic-tac-toe
  3. Open index.html in your preferred web browser.

Usage

  1. Open index.html in your web browser.
  2. Players take turns clicking on the empty boxes to place their symbol (X or O).
  3. The game announces the winner and highlights the winning line with a strikethrough.
  4. Click the "Reset" button to start a new game.

Project Structure

tic-tac-toe/
├── index.html        # The main HTML file
├── style.css         # The CSS file for styling
└── script.js         # The JavaScript file for game logic

HTML

The index.html file contains the structure of the game including the grid and the reset button.

CSS

The style.css file contains the styles for the game, including the grid layout, box styles, and strikethrough effect.

JavaScript

The script.js file contains the game logic including turn switching, win checking, and strikethrough application.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.


Feel free to customize this README.md file further according to your project's specifics.

About

Practicing Javacsript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published