Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/satyam-software-developer/tic-tac-toe-game

tic tac toe game app created with html, css and javascript for frontend web development.
https://github.com/satyam-software-developer/tic-tac-toe-game

css git github html javascript

Last synced: 16 days ago
JSON representation

tic tac toe game app created with html, css and javascript for frontend web development.

Awesome Lists containing this project

README

        

# Tic-Tac-Toe-Game
A simple and interactive Tic Tac Toe game built with HTML, CSS, and JavaScript.

# Description
This project is a browser-based implementation of the classic Tic-Tac-Toe game. It allows two players to play against each other on the same device. The game features a responsive design, user-friendly interface, and logic to determine the winner or if it ends in a draw.
# Features
1. Two-Player Gameplay:

- Player 1 (X) and Player 2 (O) alternate turns to place their symbols on the board.
2. Winner Detection:

- Automatically checks for winning combinations after each turn and announces the winner.
3. Draw Detection:

- Declares the game a draw if all cells are filled without a winner.
4. Restart Button:

- Allows players to reset the game and play again.
5. Responsive Design:

- Works on various screen sizes, including desktops and mobile devices.
# Technologies Used
1. HTML:

- Structure and layout of the game board and interface.
2. CSS:

- Styling for the game board, buttons, and visual effects.
3. JavaScript:

- Handles game logic, player turns, winner/draw detection, and UI updates.
# How to Play
1. Open the game in your browser.
2. Player 1 (X) starts the game.
3. Players take turns clicking on the empty cells of the 3x3 grid.
4. The first player to align three symbols in a row, column, or diagonal wins the game.
5. If all cells are filled and no one wins, the game is declared a draw.
6. Click the "Restart" button to reset the game and play again.

# Folder Structure
tic-tac-toe/
├── index.html // Main HTML file
├── style.css // CSS file for styling
├── app.js // JavaScript file for game logic
└── README.md // Project documentation
# How to Run the Project
1. Download or clone the repository:
git clone https://github.com/satyam-software-developer/Tic-Tac-Toe-Game.git
2. Open the index.html file in any modern browser (e.g., Chrome, Firefox, Edge).
3. Start playing the game!
# Contributing
Feel free to fork the repository, make changes, and submit a pull request. Contributions are always welcome!
# License
This project is open source and available under the MIT License.
# Demo
https://satyam-software-developer.github.io/Tic-Tac-Toe-Game/
# Author
Developed by Satyam Kumar