Bug 415 - The program started and stuck in just one round
Summary: The program started and stuck in just one round
Status: CONFIRMED
Alias: None
Product: CandyCrush 2020
Classification: Unclassified
Component: Source Code (show other bugs)
Version: 1.0
Hardware: PC Windows
: High enhancement
Assignee: jli262-c
URL:
Depends on:
Blocks:
 
Reported: 2020-11-18 16:53 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 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.