forcedotcom / quiz-host-app

Multiplayer quiz app built on Salesforce technology (host app)
Creative Commons Zero v1.0 Universal
108 stars 67 forks source link

Incorrect score assigned to players #40

Closed pozil closed 4 years ago

pozil commented 4 years ago

I ran a few tests with a friend and I saw weird behaviors in player scores on several occasions.

For example, I only got 500 points after answering correctly the first question. According to the spec we discussed, that shouldn't happen. I should have got 1000 (fastest good answer).

Screenshot 2019-11-05 at 22 55 31

Later on in this game, another player gave a correct answer to a different question but only scored 576.

Screenshot 2019-11-05 at 22 56 28

Here's the data of all answers that I had at the end of the game: answers.csv.txt

Can you run some tests and investigate?

annyhe commented 4 years ago

@pozil I was not able to reproduce this. I had 2 players, 1 in chrome and 1 in firefox, and ran through the game once. The client who answered the fastest got 1000, regardless of whether the other client was correct or not.

pozil commented 4 years ago

I found out how to reproduce, it's pretty simple:

  1. P1 answers wrong
  2. P2 answers correctly

I'm working on a fix.