Bug 414 - The scores of continuous successful swap are not in a cumulative growth
Summary: The scores of continuous successful swap are not in a cumulative growth
Status: CONFIRMED
Alias: None
Product: CandyCrush 2020
Classification: Unclassified
Component: Source Code (show other bugs)
Version: 1.0
Hardware: PC Windows
: Normal enhancement
Assignee: jli262-c
URL:
Depends on:
Blocks:
 
Reported: 2020-11-18 09:54 HKT by jli262-c
Modified: 2020-11-29 15:04 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jli262-c 2020-11-18 09:54:31 HKT
Summary:
It's found that after the user played several successful swaps and should have got more and more scores, but it would increase sometimes and decrease at the other time.

Steps to Reproduce:
1. run the program
2. input several successful steps

Actual Result:
Remaining Steps: 19; Score: 3
Remaining Steps: 18; Score: 4
Remaining Steps: 18; Score: 3

Expected Result:
Remaining Steps: 19; Score: 3
Remaining Steps: 18; Score: 7
Remaining Steps: 18; Score: 10
Comment 1 jli262-c 2020-11-18 10:04:59 HKT
(In reply to jli262-c from comment #0)
> Summary:
> It's found that after the user played several successful swaps and should
> have got more and more scores, but it would increase sometimes and decrease
> at the other time.
> 
> Steps to Reproduce:
> 1. run the program
> 2. input several successful steps
> 
> Actual Result:
> Remaining Steps: 19; Score: 3
> Remaining Steps: 18; Score: 4
> Remaining Steps: 18; Score: 3
> 
> Expected Result:
> Remaining Steps: 19; Score: 3
> Remaining Steps: 18; Score: 7
> Remaining Steps: 18; Score: 10

Confusing to use the global variable "this.score" and the input local variable "score" in the update() method in the ScoreBoardHandler class.