Skip to content

Game master stops the running round

Alexander Gerasimov edited this page Apr 13, 2017 · 4 revisions

❓ Game master stops the round (click on the "Stop" button):

Note: Steps 4-7 are also valid when round time runs out.

  1. _qd-ui -> fe-service:

    {
        to: 'front-service',
        message: {
            name: 'round.stop'
        }
    }
  2. fe-service --> redemption:

    {
        to: 'state-service',
        message: {
            name: 'round.stop',
            sessionId: 'rsconf-2017'
        }
    }
  3. redemption --> zandbak-service:

    {
        to: 'sandbox-service',
        message: {
            name: 'sandbox.reset'
        }
    }
  4. redemption --> fe-service:

    {
        to: 'front-service',
        message: {
            name: 'roundPhase.changed',
            roundPhase: "end",
            sessionId: 'rsconf-2017'
        }
    }
  5. fe-service -> _qd-ui:

    {
        to: '_qd-ui',
        message: {
            name: 'roundPhase.changed',
            roundPhase: "end"
        }
    }
  6. redemption --> fe-service:

    {
        to: 'front-service',
        message: {
            name: 'score',
            sessionId: 'rsconf-2017',                
            players: [{
                participantId: 'abcd-1234-qwer-5678',
                inputLength: 37,
                solution: null | { time{seconds}, code, correct },
                aggregateScore: null | time{seconds}
            }]
        }
    }
  7. fe-service -> _qd-ui:

    GameMaster

    {
        to: '_qd-ui',
        message: {
            name: 'score',
            players: [{
                participantId: 'abcd-1234-qwer-5678',
                displayName: 'John Walker',
                inputLength: 37,
                solution: null | { time{seconds}, code, correct }
                aggregateScore: null | time{seconds}
            }]
        }
    }