Skip to content

Akanksha038/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tic-Tac-Toe-Game

Introduction

The Tic-Tac-Toe Game is a classic two-player game implemented using modern web technologies. The objective of this project is to create a simple, interactive, and fun game that demonstrates my skills in front-end development. This project also serves as a practice for implementing game logic, managing state, and creating a responsive user interface.

Screenshot (64)

Features

  • Two-Player Mode: Play against another person on the same device.
  • Interactive UI: Click to place X or O on the board.
  • Responsive Design: Optimized for different screen sizes, including mobile devices.
  • Winning Detection: Automatically detects and announces the winner or if there's a draw.
  • Restart Game: Option to restart the game at any time.
Document.-.Profile.1.-.Microsoft.Edge.2024-05-18.10-54-31.mp4

Technologies Used

HTML5: For creating the structure of the game.

CSS: For styling the game and making it responsive.

JavaScript (ES6): For implementing the game logic and interactivity.

Installation

To set up and run the Tic-Tac-Toe Game locally, follow these steps:

Clone the repository: bash git clone https://github.com/Akanksha038/Tic-Tac-Toe-Game.git

Usage

  1. Open Visual Studio Code(or your preferred code editor) and run this code to view the game.

  2. Click on any cell in the 3x3 grid to make a move. Player X always starts first.

  3. Take turns with the other player, clicking on an empty cell to place your mark.

  4. The game will automatically detect if a player has won or if there's a draw.

  5. Click the "New Game" button to reset the game and play again.

Contributing:

Contributions are welcome! If you have suggestions for improvements or new features, please feel free to open an issue or submit a pull request. Follow these steps to contribute:

1.Fork the repository.

2.Create a new branch: git checkout -b feature-branch-name.

3 .Make your changes and commit them: git commit -m 'Add new feature'.

4.Push to the branch: git push origin feature-branch-name.

5.Open a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published