logoalt Hacker News

codingdaveyesterday at 3:58 PM4 repliesview on HN

It is a nice UX, but with a fatal flaw: Tiles are supposed to be free when there is a side free, but you instead have it coded to be free when the top or bottom is free. Your app, your rules, so if you intended to do that, cool. It is just a fundamental divergence from how other implementations do it.


Replies

jasperryyesterday at 10:34 PM

If you rotate it so the board looks like the traditional solitaire layout, the direction of free tiles is horizontal as it's supposed to be. But then the images on the tiles are rotated 90 degrees. Either way you look at it, something is non-standard.

The other thing is that this implementation doesn't seem to support overlapping tiles, which is kind of important. For instance, the topmost tile should overlap and block all four tiles under it.

show 1 reply
rpdillonyesterday at 4:36 PM

Thanks for mentioning this. I played a little bit and I felt like it was the opposite of what I'd remembered. I do like that the inaccessible tiles are faded somewhat so that I don't inadvertently try to match them.

show 1 reply
rofkoyesterday at 4:43 PM

Thank you for the feedback! I will triple check the rules

thih9yesterday at 6:14 PM

> Tiles are supposed to be free when there is a side free

No.

According to wikipedia[1]: "A tile is said to be open or exposed if it can be moved either left or right without disturbing other tiles.". Also look at the photo in the wikipedia article[2]. This implementation looks correct to me.

[1]: https://en.wikipedia.org/wiki/Mahjong_solitaire

[2]: https://en.wikipedia.org/wiki/Mahjong_solitaire#/media/File:...