Bug 361642

Summary: Kmines generates very similar boards
Product: [Applications] kmines Reporter: Jonathan Ryshpan <jonrysh>
Component: generalAssignee: Dmitry Suzdalev <dimsuz>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jonrysh, kde-games-bugs, lev.krainov, schwarzer
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Snapshot of kmines board
Another snapshot
First snapshot
Second snapshot

Description Jonathan Ryshpan 2016-04-11 20:16:37 UTC
Playing Version 4.0 (29 Jan 2015)

I get boards that are extremely similar.

Reproducible: Always

Steps to Reproduce:
1. Run kmines by clicking start->All Applications->Games->Tactics & Strategy->kmines
2. Run again same way


Actual Results:  
Random boards

Expected Results:  
Boards very much alike

Snapshots of two such boards will be in a comment.
Comment 1 Jonathan Ryshpan 2016-04-11 20:19:32 UTC
Created attachment 98346 [details]
Snapshot of kmines board
Comment 2 Jonathan Ryshpan 2016-04-11 20:21:56 UTC
Created attachment 98347 [details]
Another snapshot
Comment 3 Jonathan Ryshpan 2016-04-11 20:24:33 UTC
The best way to see difference is to display the two boards in windows one above the other and to alternate between one board and the other.
Comment 4 lev 2016-05-02 11:59:14 UTC
Created attachment 98743 [details]
First snapshot
Comment 5 lev 2016-05-02 12:00:46 UTC
Created attachment 98744 [details]
Second snapshot

As you can see two boards are exactly identical. I was able to win in second case using previous snapshot.
Comment 6 Frederik Schwarzer 2016-05-02 12:17:14 UTC
Can you please state your version of KCoreAddons on your system?
The issue you are experiencing might be related to
https://bugs.kde.org/show_bug.cgi?id=362161
Comment 7 lev 2016-05-02 12:30:22 UTC
(In reply to Frederik Schwarzer from comment #6)
> Can you please state your version of KCoreAddons on your system?
> The issue you are experiencing might be related to
> https://bugs.kde.org/show_bug.cgi?id=362161

I'm running Arch linux:
extra/kcoreaddons 5.21.0-1 (kf5)
Comment 8 Frederik Schwarzer 2016-05-02 12:50:31 UTC
Ok, that's the affected version. And KMines uses KRandomSequence (from KCoreAddons) to generate the mine positions.
The issue has been fixed last week and packagers have been notified to ship updates as soon as possible.
In Fedora, the package kf5-kcoreaddons-5.21.0-4 contains the fix. It should land soon.
https://bodhi.fedoraproject.org/updates/FEDORA-2016-1707f83508

Please update and then try again.

I will close this issue. If the problem remains with said package, please reopen.

Thank you for your report and sorry for the long delay. KMines does not have a maintainer at the moment.

*** This bug has been marked as a duplicate of bug 362161 ***
Comment 9 Frederik Schwarzer 2016-05-02 12:56:59 UTC
Sorry, got confused because the initial report sais "Fedora RPM".
On Arch, the issue should be fixed with kcoreaddons 5.21.0-3 which looks to have been roled out about 5 days ago.
https://www.archlinux.org/packages/extra/x86_64/kcoreaddons/