Tic Tac Toe multiplayer game using Express server with Socket.IO.
Multiplayer Tic Tac Toe game.
Try Demo
.
Report Bug
·
Request Feature
This is a two-player game of the famous Tic Tac Toe game, where the players are given a 3x3 board and whoever completes a row, column or diagonal streak of their symbol (X or O) wins.
Here's why I made this project:
- Practice socket communication using Socket.IO and an Express server.
- Understand more about communication protocols and handling requests back and forth.
- Ensure Node.js is installed
- Clone this repository -
git clone https://github.com/omarxadel/xo-socket-server.git
- Install the dependences:
cd xo-socket-server
npm install
- Start the server:
npm start
- Visit http://127.0.0.1:80 in a browser and click CREATE.
- Ensure 2 devices are on a local network, or that the application server is accessable by 2 devices.
- Start the application
- Visit http://your.ip.address:80 on a PC, Tablet, SmartTV or other large screen device
- Click CREATE
- On a mobile device, visit http://your.ip.address:80
- Click JOIN on the mobile device screen.
- Follow the on-screen instructions to join a game.
- Find an opponent and have him/her repeat steps 5-7 on another mobile device.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
📧 Omar Adel - @omarxadel - omarxadel21@gmail.com