Skip to content

omarxadel/xo-socket-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Multiplayer Game

Tic Tac Toe multiplayer game using Express server with Socket.IO.

About The Project

Tic Tac Toe.

Multiplayer Tic Tac Toe game.
Try Demo . Report Bug · Request Feature

Screenshot

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.

Built With

To Install

  1. Ensure Node.js is installed
  2. Clone this repository - git clone https://github.com/omarxadel/xo-socket-server.git
  3. Install the dependences:
    1. cd xo-socket-server
    2. npm install
  4. Start the server: npm start
  5. Visit http://127.0.0.1:80 in a browser and click CREATE.

To Play

Setup

  1. Ensure 2 devices are on a local network, or that the application server is accessable by 2 devices.
  2. Start the application
  3. Visit http://your.ip.address:80 on a PC, Tablet, SmartTV or other large screen device
  4. Click CREATE
  5. On a mobile device, visit http://your.ip.address:80
  6. Click JOIN on the mobile device screen.
  7. Follow the on-screen instructions to join a game.
  8. Find an opponent and have him/her repeat steps 5-7 on another mobile device.

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

📧 Omar Adel - @omarxadel - [email protected]