Coder Social home page Coder Social logo

hoangdqvn / chezz-multiplyer-chess Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 00xkhaled/chezz-multiplyer-chess

0.0 0.0 0.0 30.75 MB

Chezz chess is an online multiplayer chess game built using Javascript (Node.js and Socket.io) with login and sign build using that used Chessboard.js and Chess.js for interface and logic

License: MIT License

JavaScript 88.53% CSS 1.73% HTML 9.74%

chezz-multiplyer-chess's Introduction

My favourite quote :

What is the beginning of eternity, the end of time and space, the beginning of every end and the end of every race?

Chezz Chess

Chezz chess is a multiplayer 5 minutes chess game made using Socket.IO

How to run it ?

Requirements

  • Mongo DB
  • Node JS

Run the application

Run Mongo db using :

$> mongod

or sudo mongod depending on your OS =)

Download the node packages and dependecies :

$> npm install

Run the server:

$> node .

By this the game should be running on http://localhost:3000

Chezz Chess Project is made out of two parts:

  • Client

    • Socket.io(Socket.IO enables real-time bidirectional event-based communication)
    • HTML5, CSS3, java script , jquery and the awesome bootstrap and font awesome to add the icons
  • Server :

    • Handlebars.js for rendering HTML templates
    • Node JS web server
    • Mongo DB as database
    • Express JS as web framework
    • Passport JS for authentication
    • Socket.io

Features of this Project :

  • Multiplayer game that consists of two players connect trough sockets using socket.io
  • Used passport.js for User authentication to signup and login
  • REST APIs /api

Functionality :

  1. A player send a request to create a game
  2. the server genrate and creates the new game send the token to the user to use it and send it to the other player
  3. other players join the game by accessing the URL (token) that was send by the user
  4. when the second player joines the game, server connects the two players sockets to the same socket.io room and the game starts once they have connected
  5. when the game ends both players are disconnected and redirected to the home or paly page

Special thanks to :

Chess.js and Chessboard.js libraries.

as well as the aweomse David Washington and hi real time chess basic setup

User

  • Send a GET request to

/api/user/:name

Example:

/api/user/khaled

{
    "id": "123",
    "name": "khaled",
    "email": "[email protected]",
    "lastConnection": "now :p "
}

Authors:

  • Khaled Daoudieh
  • Dima shahin

chezz-multiplyer-chess's People

Contributors

00xkhaled avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.