Bug 351

Summary: Gameboard continues shuffling after game ended
Product: Limited Linking Kindergarten Reporter: qihuadong2-c
Component: GameboardAssignee: qihuadong2-c
Status: RESOLVED FIXED    
Severity: major CC: dehezhang2-c, ruikangli2-c
Priority: Normal    
Version: V0.1   
Hardware: PC   
OS: Windows   
Attachments: Capture of console
Capture of solution

Description qihuadong2-c 2019-12-05 14:21:36 HKT
Steps to reproduce:
1, Run main game
2, Enter the name and submit
3, Start game and finish it.

Actual result:
GUI is not responding and console continuously outputs:
Not solvable, shuffling
Not solvable, shuffling
Not solvable, shuffling
Not solvable, shuffling
Not solvable, shuffling
Not solvable, shuffling
Not solvable, shuffling
......

Expected result:
Game returned to the menu and no "Not solvable, shuffling" is shown.
Comment 1 qihuadong2-c 2019-12-05 14:23:22 HKT
Created attachment 39 [details]
Capture of console
Comment 2 qihuadong2-c 2019-12-05 14:25:36 HKT
Created attachment 40 [details]
Capture of solution
Comment 3 qihuadong2-c 2019-12-05 14:26:07 HKT
Comment on attachment 40 [details]
Capture of solution

In src/Board.java
Comment 4 qihuadong2-c 2019-12-05 14:29:31 HKT
Solved by checking the remaining number before executing isSolvable(). The solution code can be viewed in the attachment.