GithubHelp home page GithubHelp logo

spichki-game / game-lobby Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 32 KB

:black_circle: Game mechanics: :small_orange_diamond:Microservice :small_orange_diamond:gRPC API

License: GNU General Public License v3.0

python grpc-server microservice

game-lobby's Introduction

Game-Lobby

Game Lobby is a part of the Spichki Game project. This microservice provide gPRC API (see proto).



Data model

Headers hashmaps:

header:1001  ->  {status: "FULL", max_players: 2}
header:1002  ->  {status: "OPEN", max_players: 3}
header:1003  ->  {status: "PLAY", max_players: 4}
header:1004  ->  {status: "OPEN", max_players: 4}
header:1005  ->  {status: "PLAY", max_players: 6}

Status sets:

status:OPEN  ->  {1002, 1004}
status:FULL  ->  {1001}
status:PLAY  ->  {1005, 1003}

Max players sets:

max_players:2   ->  {1001}
max_players:3   ->  {1002}
max_players:4   ->  {1003, 1004}
max_players:5   ->  (nil)
max_players:6   ->  {1005}
max_players:7   ->  (nil)
max_players:8   ->  (nil)
max_players:9   ->  (nil)
max_players:10  ->  (nil)

Group sets:

group:1001  ->  {1001, 1006}
group:1002  ->  {1002}
group:1003  ->  {1003, 1008, 1013}
group:1004  ->  {1004, 1009}
group:1005  ->  {1005, 1010, 1015, 1017}

Join players set:

players:JOIN  ->  {1006, 1008, 1013, 1009, 1010, 1015, 1017}

game-lobby's People

Contributors

scibourne 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.