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
(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.