Bug 481709 - mines not being accurately counted around tiles
Summary: mines not being accurately counted around tiles
Status: REPORTED
Alias: None
Product: kmines
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dmitry Suzdalev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-23 05:57 UTC by zachary_heck
Modified: 2025-06-27 12:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
red issue circle (183.82 KB, image/png)
2024-02-23 05:57 UTC, zachary_heck
Details
bug in mine count calculation near "3" (94.80 KB, image/jpeg)
2024-02-26 00:20 UTC, Dmitry Suzdalev
Details
bug on easy mode (58.08 KB, image/png)
2025-06-26 11:37 UTC, Daniel
Details
1 with 2 bombs near (21.64 KB, image/png)
2025-06-27 11:03 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zachary_heck 2024-02-23 05:57:52 UTC
Created attachment 166031 [details]
red issue circle

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. play on medium

OBSERVED RESULT
eventually fail due to hitting unexpected mine in place that should have been impossible

EXPECTED RESULT
not that

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: fedora 39
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2024-02-23 22:34:08 UTC
I don't see what's the problem.

the bomb with the X cross is you making a mistake putting a flag where there wasn't a bomb.

Isn't this you just losing the game?
Comment 2 zachary_heck 2024-02-24 05:35:02 UTC
> Isn't this you just losing the game?

no its not
at the top of the red circle i highlighted there are a pair of 1s, each of which have a mine bellow them
that violates the rules of minesweeper with each 1 having 2 mines next to it
same thing with the right most 2 in the pair of 2s having 3 mines next to it
there are tiles with lower numbers than there are mines around them
Comment 3 Albert Astals Cid 2024-02-24 10:35:56 UTC
They don't have a pair of mines, they only have one, the one with the X is one you had marked as having a mine with a flag and the game is telling you that you made a mistake there and there is no mine
Comment 4 zachary_heck 2024-02-24 17:30:44 UTC
> They don't have a pair of mines, they only have one
the flag has a 2 to the left of it with only 2 possible spaces for a mine, both of which I marked with a flag
there is a mine under that flag and the game doesn't show mines under flags
each 1 has a mine under it
the game is bugged
Comment 5 Albert Astals Cid 2024-02-25 22:48:19 UTC
I disagree, but i don't have more time to spend here.

I'll bring this back to reported and maybe someone else can have a look at it.
Comment 6 Dmitry Suzdalev 2024-02-26 00:20:50 UTC
Created attachment 166106 [details]
bug in mine count calculation near "3"

I believe reporter is right here and there's some bug after all, otherwise how would be this "3" I outlined in blue possible if there is no mine in the flagged square?...  (see the new attachment)
Comment 7 Albert Astals Cid 2024-02-26 20:44:56 UTC
That 3 circled in blue already has 3 mines around it (the flagged ones), so there's no problem at all there.

The mistake that the user did is on the cell with the mine with a red cross on top, that is a cell that had a flag by the user and was wrong, and the user clicked on the one that is yellow thinking it had no mine and it had one.

You can see the user did a mistake because that cell can't have a mine because otherwise the 2 to the right of the two 1s would have 3 mines around it instead of 2.
Comment 8 Dmitry Suzdalev 2024-02-26 21:48:12 UTC
Ah, indeed, you are right! Somehow I counted the crossed out mine as a valid one while it's there only to display a location of an error. Then everything checks out and it looks like it *is* a user mistake.
Comment 9 zachary_heck 2024-02-26 22:05:15 UTC
why mark an incorrect flag with a mine with an x on it instead of something like a crossed out flag?
that's frustrating and not the clearest
Comment 10 Daniel 2025-06-26 11:37:54 UTC
Created attachment 182683 [details]
bug on easy mode

This bug exists on easy mode too.
Comment 11 Albert Astals Cid 2025-06-26 21:21:02 UTC
There's no bug, again you lost.
Comment 12 Daniel 2025-06-27 10:58:30 UTC
(In reply to Albert Astals Cid from comment #11)
> There's no bug, again you lost.

Ok, then tell me where is my mistake, please!
Comment 13 Daniel 2025-06-27 11:03:46 UTC
Created attachment 182720 [details]
1 with 2 bombs near

Here shows 1 mine count with 2 bombs near.
Comment 14 Albert Astals Cid 2025-06-27 12:35:47 UTC
Quoting myself

"The mistake that the user did is on the cell with the mine with a red cross on top"