Skip to content
Kiril Knysh edited this page Sep 25, 2017 · 55 revisions

QDP (QuickDraw Protocol)

version 0.0.1

Glossary

game - _qd | cssqd

Role - player | game-master

Participant - Player or Game Master, has participantId and role

Puzzle - a task with input and expected + options (time limit, sandbox + sandbox options)

input - the given data (piece of code)

expected - the goal that should be derived from input

Solution - Participant's input for the given Puzzle (could be correct=true|false) + time

Score - aggregation of Solution-s

Round - Puzzle + Participant-s + Solution-s + Score (round score) (could be current)

Round phase - current phase of Round (idle | countdown | in-progress | end)

Session - a set of Puzzle-s + Participant's roles + Score (aggregate score)

sessionId - uniq ID of session, generated by DB

sessionAlias - session alias, uniq across one game (game + sessionAlias)

Service Identities

  • "state-service" (Redemption)
  • "messenger" (Arnaux)
  • "front-service"
  • "sandbox-service" (Zandbak)

-> - internal message (e.g. from the UI to front-end-service)

--> - arnaux based message

Arnaux cheсk-in (helper):

{
    to: 'messenger',
    message: {
        name: 'checkin',
        identity: 'zandbak-service'
    }
}