Bug 414

Summary: The scores of continuous successful swap are not in a cumulative growth
Product: CandyCrush 2020 Reporter: jli262-c
Component: Source CodeAssignee: jli262-c
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: 1.0   
Hardware: PC   
OS: Windows   

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.