Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score board is not initialized with 0 #17

Open
sastaachar opened this issue Sep 12, 2020 · 4 comments
Open

Score board is not initialized with 0 #17

sastaachar opened this issue Sep 12, 2020 · 4 comments

Comments

@sastaachar
Copy link
Contributor

Before the competition is started the scoreboard should be initialized with 0 , with respect to team names.

@naveen-770
Copy link
Member

naveen-770 commented Sep 12, 2020

please explain the whole concept of scoreboard. @sastaachar

@sastaachar
Copy link
Contributor Author

sastaachar commented Sep 12, 2020

check room.competition.scoreboard,
it is just a object with key as team_name and value as score

For eg : suppose there are 2 teams (chacha and chachi)

room.competition.scoreboard : {
       "chacha" : 2,
       "chachi" : 5
}

So in what i want is that before the competition is starting (i.e before emitting competition_started) , initialize the scoreboard with
[team_name] : 0

@sanithps98
Copy link
Member

Okay !

@sastaachar
Copy link
Contributor Author

sastaachar commented Sep 12, 2020

just a few changes in plan , i have explained changes to Naabin ,
so basically we wont be storing scores but we will be storing the Qids of solved question , like
if there are 3 ques A,B and C and Chacha solved Ques A and Chachi solved Ques B and C,
then

Note : chacha and chachi are teams (not individual players)

{
    "Chacha" : ['A'],
    "Chachi" :  ['B', 'C'], 
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants