https://github.com/anurag-prajapati34/tic-tac-toe-game
It's an Fully Functional Tic Tac Toe Game ,
https://github.com/anurag-prajapati34/tic-tac-toe-game
Last synced: about 1 month ago
JSON representation
It's an Fully Functional Tic Tac Toe Game ,
- Host: GitHub
- URL: https://github.com/anurag-prajapati34/tic-tac-toe-game
- Owner: anurag-prajapati34
- Created: 2024-06-13T11:44:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-13T16:10:52.000Z (about 1 year ago)
- Last Synced: 2024-06-14T15:20:56.293Z (about 1 year ago)
- Size: 417 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Tic Tac Toe Game
Welcome to the Tic Tac Toe game! This web application is a simple yet engaging implementation of the classic Tic Tac Toe game, developed using HTML, CSS, and JavaScript.
Features
-
Player vs Player Mode: Play against another person on the same device. -
Interactive UI: Enjoy a clean, responsive, and intuitive user interface. -
Dynamic Game Logic: The game intelligently handles turns, checks for win conditions, and declares the winner or a draw. -
Reset Option: Easily restart the game with a click of a button.
How to Play
-
Start the Game: Open the web application in your browser. -
Make Your Move: Player 1 (X) makes the first move by clicking on any of the available cells in the 3x3 grid. -
Alternate Turns: Player 2 (O) makes the next move by clicking on any available cell. -
Winning the Game: The first player to align three of their marks (X or O) horizontally, vertically, or diagonally wins the game. -
Draw: If all cells are filled and no player has three aligned marks, the game ends in a draw. -
Resetting the Game: Click the reset button to start a new game.
Technologies Used
-
HTML: For structuring the web page and creating the game board. -
CSS: For styling the game board and user interface to make it visually appealing. -
JavaScript: For implementing the game logic, handling user interactions, and updating the UI dynamically.
Project Structure
-
index.html: Contains the HTML structure of the game. -
style.css:Contains the CSS styles for the game. -
script.js: Contains the JavaScript code that drives the game logic.