Giter Club home page Giter Club logo

onlinechess's Introduction

Jeu d'échecs en ligne

Ce projet consiste à déployer une application web de jeu d'échecs jouable en multijoueur.

Installation et lancement

  • Récupération du projet, des dépendances et compilation :

    git clone https://gitlab.univ-nantes.fr/tonneau-q/onlineChess.git
    cd onlineChess
    npm install
    tsc
  • Lancement du serveur :

    node build/main.js
  • Accès à l'application : http://adresseduserveur:8080 (ou http://localhost:8080 sur le pc local)

Manuel d'utilisation

Indiquer dans le formulaire en bas de page la pièce à déplacer et sa destination au format PieceColonneLigne puis validez.
L'accronyme de la pièce est exprimé selon la liste suivante :

  • R : roi
  • D : dame
  • Fc | Ff : fou initialement en colonne c|f
  • Cb | Cg : cavalier initialement en colonne b|g
  • Ta | Th : tour initialement en colonne a|h
  • Pa | Pb | Pc | ... : pion initialement en colonne a|b|c|...

Exemple : PbB4 déplace le pion initialement en colonne B à la case B4.

Organisation des sources

  • server : sources relatives au serveur
    • main.ts : algorithme principale de création et gestion du serveur
  • client: sources relatives aux navigateur(s)
    • index.html : page principale de l'application
    • style.css : design de l'application
    • script.js : algorithme(s) JavaScript côté client
  • build : résultats de la compilation TypeScript
  • node_modules : modules externes importés (express)
  • sujet.pdf : sujet du projet
  • .gitignore : filtre des fichiers à exclure dans le dépôt git
  • .tsconfig et package.json : paramètres de compilation et d'exécution

API

L'adresse /status.js distribue toutes les informations de la partie en cours.

onlinechess's People

Contributors

saadmahboubi avatar

Watchers

 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.