Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/akash1000x/realtime-tic-tac-toe-game


https://github.com/akash1000x/realtime-tic-tac-toe-game

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Tic Tac Toe Multiplayer Game

A real-time multiplayer Tic Tac Toe game built using WebSocket .

## Overview

This project implements a simple Tic Tac Toe game where players can play against each other in real-time. It utilizes WebSocket for efficient and instantaneous communication between clients and the server.

## Features

- Real-time multiplayer Tic Tac Toe gameplay.
- WebSocket communication for instant moves and updates.
- Simple and intuitive user interface.
- Player names and symbols customization.

## Technologies Used

- [Node.js](https://nodejs.org/)
- [Express.js](https://expressjs.com/)
- [Socket.io](https://socket.io/)
- HTML, CSS, JavaScript

## Setup

1. Clone the repository:

```bash
git clone https://github.com/Akash1000x/RealTime-Tic-Tac-Toe-Game.git

2. Install dependencies:
```bash
npm install express socket.io
```
3.Run the server:
```bash
node index.js
```

4. Open the game in your web browser:
http://localhost:3000

## How to Play

1. Open the game in your web browser by navigating to [http://localhost:3000](http://localhost:3000).
2. In the first tab, enter your name in the provided input box and click "Submit."
3. Open a new tab in the same browser on the same PC.
4. In the second tab, enter your name and click "Submit."
5. Wait for the game to pair both players.
6. Once both players are ready, the game will start, and you can take turns making moves.
7. The game will automatically detect a win, loss, or draw and display the result.
8. Click "New Game" to start a new round.

## Contributing
Feel free to contribute to the project. If you have suggestions or find any issues, please open an issue.