Skip to content

Tic Tac Toe game using HTML CSS and JavaScript for game logic

Notifications You must be signed in to change notification settings

sudhanshu25012002/Tic-Tac-Toe-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

A simple Tic-Tac-Toe game implemented in JavaScript, HTML, and CSS.

Table of Contents

Introduction

This project is a web-based Tic-Tac-Toe game where two players can play against each other. The game is implemented using JavaScript for the game logic, and HTML/CSS for the layout and styling.

Features

  • Two-player gameplay (Player X and Player O)
  • Simple and intuitive user interface
  • Detects win conditions and ties
  • Responsive design

Installation

To run the game locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/tic-tac-toe-js.git
  2. Navigate to the project directory:

    cd tic-tac-toe-js
  3. Open the index.html file in your preferred web browser:

    open index.html

Usage

To play the game, simply click on any cell in the grid to make a move. Players take turns clicking on empty cells to place their mark (X or O). The game will automatically detect when a player wins or if the game ends in a tie.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Contributing

Contributions are welcome! If you have any ideas or improvements, feel free to open an issue or create a pull request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/your-feature-name)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature-name)
  5. Open a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.


Happy coding!