https://bugs.kde.org/show_bug.cgi?id=446780

            Bug ID: 446780
           Summary: Losing a game should produce a new random grid
           Product: kmines
           Version: 4.0.21081
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dim...@gmail.com
          Reporter: johne...@waf.io
                CC: kde-games-b...@kde.org
  Target Milestone: ---

SUMMARY
After losing a game, "Reset the Game" gives the exact same grid again. It is
therefore trivial to make a high score by memorizing the grid or taking a
screenshot. The grid should be randomized.

STEPS TO REPRODUCE
1. Lose a game, then remember which cells have mines
2. Select "Yes" on the dialog "Reset the Game"
3. Click one of the previous cells where mines are located. The grid is exactly
the same, and the game is immediately lost.

OBSERVED RESULT
After losing a game, there is never a new grid. To generate a new grid, one
should switch to a game with a different difficulty level and then back to the
previous difficulty.

EXPECTED RESULT
Randomize the grid. The method `void MineFieldItem::resetMines()` should
probably call `MineFieldItem::generateField` (or a some other method that reads
`random`).

SOFTWARE/OS VERSIONS
Linux Kubuntu Impish
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to