Bug 415

Summary: The program started and stuck in just one round
Product: CandyCrush 2020 Reporter: jli262-c
Component: Source CodeAssignee: jli262-c
Status: CONFIRMED ---    
Severity: enhancement    
Priority: High    
Version: 1.0   
Hardware: PC   
OS: Windows   

Description jli262-c 2020-11-18 16:53:42 HKT
Summary: 
The bug was that the game stuck or ended after executing just one round.

Steps to Reproduce:
1. Run the program;
2. Input a successful swap.

Actual Results:
One swap finished and the game stuck or ended, while the current score was smaller than the goal.

Expected Results:
If the score didn't meet the goal, the program would continuously ask for user input.
Comment 1 jli262-c 2020-11-18 19:33:47 HKT
(In reply to jli262-c from comment #0)
> Summary: 
> The bug was that the game stuck or ended after executing just one round.
> 
> Steps to Reproduce:
> 1. Run the program;
> 2. Input a successful swap.
> 
> Actual Results:
> One swap finished and the game stuck or ended, while the current score was
> smaller than the goal.
> 
> Expected Results:
> If the score didn't meet the goal, the program would continuously ask for
> user input.

There is a missed while-loop that contain remaining codes in getUserInput() method  to ensure the continuous running of our code.