Giter Site home page Giter Site logo

draw-and-guess's Introduction

draw-and-guess

Game Server

there are 4 types of requests that server need to response:

  1. "CliNewPoint@X%Y" from drawers: upon receiving this request, the server should publish the new drawing point immediately to all the guessers.

  2. "CliNewWinner@USER_ID" from guessers: upon receiving this request, the server should publish the winner immediately to all the players.

  3. "CliNewPlayer@USER_ID%USER_IP%USER_NAME" from players: upon receiving this request, the server should see if there is enough space for the new player, if there is not, reject the player.

  4. "CliPlayerReady@USER_ID%(1 or 0)" from players: upon receiving this request, the server should mark this play to be ready to play, if all players are ready, then start the game.

there are 5 types of messages that server may send:

  1. "ServerNewPoint@X%Y"

  2. "ServerNewWinner@USER_ID"

  3. "ServerNewPlayer@USER_ID%USER_IP%USER_NAME%POSITION" (deprecate)

  4. "ServerNewPlayerList@USER_ID%USER_IP%USER_NAME%POSITION|USER_ID%USER_IP%USER_NAME%POSITION|USER_ID%USER_IP%USER_NAME%POSITION"

  5. "ServerPlayerReady@USER_ID"

  6. "ServerNewGame@DRAWER_ID%WORD"

draw-and-guess's People

Contributors

ckyy5770 avatar

Watchers

 avatar Xiao Li 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.