Log In  


Cart #mahjong-0 | 2022-08-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
25

Rules

I guess most people will already know how to play Mahjong solitaire, but if you don't:

You will be given a pile of tiles. A tile may only be removed when it is possible to move it either to the left or right and no other tile is in the way, and no other tiles covers it either fully or partially. Remove tiles by pairing together same glyphs. Remove every tile to win.

There are four of each tile and they match only a tile with the exact same face. An exception to this are the flowers and seasons which may match any of the others of the same group:

Flowers:

Seasons:

About

The game will default to creating a random pile that has at least one guaranteed solution path but there is an option for a completely randomly generated pile if you prefer the challenge.

Playable with both controller and mouse.

25


1

This is really fun! Appreciate the implementation.

Quick bug report:

It looks like there's a periodic issue where a board will reach a state with no remaining moves but not be flagged as such:

My current theory is that there's something wrong with the algorithm for determining which tiles above the 'floor' level of tiles are playable, and it allows play to continue from here because it thinks the green 5 between the green 2 and gray 7 can be matched with the green 5 on the right, but that is pure speculation on my part.


Thanks for making this game. Having fun with it!


1

Bug report update:

Somehow, the game let me match a gray 1 and a green 9?

If I'm understanding the rules right, those are not supposed to pair.

Edit: Found it: on lines 47-48 of tab 1 (the data tab), the 9 of Coins is defined as ID number 9 ... and then on 50-51, the 1 of Bamboo is also defined as ID number 9. Presumably bumping the ID numbers up by one on everything from bamboo on would fix it.

Still having a ton of fun playing this - thanks again for putting it out!


great game! I like the completely random version



Well done! Thank you.


My new favorite game for traveling by bus & train ...



[Please log in to post a comment]