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