Bug 351 - Gameboard continues shuffling after game ended
Summary: Gameboard continues shuffling after game ended
Status: RESOLVED FIXED
Alias: None
Product: Limited Linking Kindergarten
Classification: Unclassified
Component: Gameboard (show other bugs)
Version: V0.1
Hardware: PC Windows
: Normal major
Assignee: qihuadong2-c
URL:
Depends on:
Blocks:
 
Reported: 2019-12-05 14:21 HKT by qihuadong2-c
Modified: 2019-12-05 14:29 HKT (History)
2 users (show)

See Also:


Attachments
Capture of console (57.41 KB, image/png)
2019-12-05 14:23 HKT, qihuadong2-c
Details
Capture of solution (25.11 KB, image/jpeg)
2019-12-05 14:25 HKT, qihuadong2-c
Details

Note You need to log in before you can comment on or make changes to this bug.
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.