Open anubhavpulkit opened 4 years ago
@sunjunkie Please have a look can I work on this issue?
Yes, you can work on this. First check to see what the Android app does about this score.
@sunjunkie Is it important to use Android algorithm to count final score, Can I propose my own algorithm/idea to count final score?
The apps should be consistent. Is there something wrong with the score calculation in the Android version?
In Android version sequence of mini-games is different than iOS and calculation of score in Android is totally unpredictable I play 8-9 times a full game but I can't understand the logic of there Total score.
Actually when I tap reply in android Powerup app it opens new mini games so but in some positions score label work fine.
On Thu, 5 Mar 2020, 03:03 Anubhav Singh, notifications@github.com wrote:
In Android version sequence of mini-games is different than iOS and calculation of score in Android is totally unpredictable I play 8-9 times a full game but I can't understand the logic of there Total score.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/anitab-org/powerup-iOS/issues/353?email_source=notifications&email_token=ALMYYFTXPQBZCLQG5NYJI7TRF3CLRA5CNFSM4K5TW6L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN2NU7Q#issuecomment-594860670, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMYYFX4TLXTLF5K7OJAXD3RF3CLRANCNFSM4K5TW6LQ .
@sunjunkie Are you available on this weekend for help?
@anubhavsingh16 Yes, I can check in periodically.
Go ahead and decide on an algorithm to update the score. Be sure to document that well in the code and in your PR description. We can always change this algorithm later if we need to.
Ok, Thank You @sunjunkie
In the current scenario, we have only one variable which store points is score
which is not updating after the replay of the game. I want to propose 2 variables currentScore and maxScore.
if the user plays the first time and gain "x" points then we store currentScore and maxScore is equal to x and we use currentScore for score view(which come after game is over) and maxScore for the total score. If user replay the game then, if(currentScore > maxScore) {
then we update the maxScore is equal to currentScore
} else maxScore is remain the last score and currentScore is update and show their current score in score view.
@what you think about this?
In the current scenario, we have only one variable which store points is
score
which is not updating after the replay of the game. I want to propose 2 variables currentScore and maxScore. if the user plays the first time and gain "x" points then we store currentScore and maxScore is equal to x and we use currentScore for score view(which come after game is over) and maxScore for the total score. If user replay the game then, if(currentScore > maxScore) { then we update the maxScore is equal to currentScore } else maxScore is remain the last score and currentScore is update and show their current score in score view.
@sunjunkie any suggestions?
ok. sounds good.
@sunjunkie I want to add this issue in my proposal. And want to do it later after the proposal submission. Because I have an idea which is linked with this issue so can you give me permission to take some time and present my proposal, if you like my idea then we work on new method to calculate and use scores otherwise I solve this issue with the simple method which is explain above.
ok. sounds good.
Thank You @sunjunkie
@sunjunkie Please have a look.
Have a look at what?
Sorry @sunjunkie 🙄
Description
When we replay
Vocab Matching Game
,Minesweeper Game
andSink To Swim Game
final score is not updated in the upper left most side.To update the value of score first we have to make a decision:- i) we update a new value in total score by removing the old value of that game. ii) we update the value if the new score is greater then the last score of that game.
Mocks
Acceptance Criteria
Update [Required]
Definition of Done
Estimation
[6] hours