You can sometimes get into a position where only two tiles are left on the board, stacked one on another. That's clearly unsolvable and you lose the game. However if the tiles are the same, the game should be won, not lost.
Can you point to some rule book where it actually says that is a win and not a lose?
I don't have a clue. Mahjongg is typically a multiplayer game, so I couldn't find anything relevant to this implementation. So maybe a configurable option? It's infuriating when it happens and doesn't make much sense since pieces are removed one by one.
The game is created in a way that it is always solvable. Finding that way is the (only) challenge.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!