Skip to content

This repo contains a Tic Tac Toe Game made with HTML, CSS and JavaScript. Players mark squares in a 3x3 grid with "X" and "O" to win by getting three in a row, column or diagonal before their opponent

Notifications You must be signed in to change notification settings

saksham-1304/Tic-Tac-Toe-Game-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic_Tac_Toe_Game_Project

This repository hosts a simple Tic Tac Toe Game implemented using HTML, CSS, and JavaScript. The Game allows two players to compete against each other on a 3x3 grid, taking turns to place their respective symbols ("X" or "O"). The objective is to create a winning pattern of three symbols in a row, column or diagonal.

Key Features:

  • Interactive Gameplay: Players can click on the grid cells to place their symbols, with the Game updating in real-time after each move.
  • Win Detection: The Game engine detects winning patterns and declares the winner when a player achieves three symbols in a row, column, or diagonal.
  • Draw Detection: If all grid cells are filled without any player achieving a winning pattern, the Game declares a draw.
  • Reset Option: Players have the ability to reset the Game board and start a new Game at any point.
  • Responsive Design: The Game interface is designed to adapt to different screen sizes, ensuring a consistent experience across devices.

Technologies Used:

  • HTML: Provides the structure for the Game interface and grid layout.
  • CSS: Styles the Game elements, including colors, fonts, and layout.
  • JavaScript: Implements the Game logic, including player turns, win detection, draw detection, and Game reset functionality.
Usage:

Clone the repository to your local machine using git clone. Open the index.html file in your web browser. Players can take turns clicking on the grid cells to place their symbols. The Game will automatically detect winning patterns or a draw.

Why Use:

  • Learning Purposes: This project serves as a beginner-friendly example for learning front-end web development concepts, including HTML, CSS, and JavaScript.
  • Customization: Developers can customize and expand upon the codebase to add new features or modify the Game's appearance.
  • Community Contributions: Contributions from the open-source community are welcomed, whether it's fixing bugs, adding features, or improving documentation.
Contributing:

Contributions are encouraged! Feel free to open an issue or submit a pull request for any enhancements or fixes you'd like to contribute.

Author:

[Saksham Singh Rathore/[https://github.com/saksham-1304] - [[email protected]]

About

This repo contains a Tic Tac Toe Game made with HTML, CSS and JavaScript. Players mark squares in a 3x3 grid with "X" and "O" to win by getting three in a row, column or diagonal before their opponent

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published