Live data from Hacker News

Show HN: I made a Mahjong browser game

jongmah.com

71–80 of 88 posts

Re: Show HN: I made a Mahjong browser game

#71
post #34

Earlier quoted context omitted.

Yes you're right, I wish I knew how to edit the post title to include the word "Solitaire" to avoid confusion.

You had I believe 2 hours to do it during which there was an 'edit' link.

Or you can ask @dang to help!

Re: Show HN: I made a Mahjong browser game

#72
Great game. Haven't played in a very long time and enjoyed this. This applies to most Mahjong Solitaire implementations but my only feedback is how I always imagine if I had to physically shuffle and tile the board up to play and how there's no way all tiles would have the same orientation. Meaning, yes left&right would be the long sides but a seven dot might be 3 over 4 or 4 over 3. Having the same orientation makes the game much easier.

Re: Show HN: I made a Mahjong browser game

#73
post #66

Possibly a stupid question: is it possible not to win this? Is it just for the purposes of relaxing, or is there a strategy? I played one hand, and it needed to shuffle towards the end because there were no legal moves, and then I won. Can every hand be won without a shuffle?

Just like many solitaire games, you can definitely lose in Mahjong Solitaire. Since there are four tiles (two pairs) of each tile set, you can play in such a way that you’re deadlocked because of a previous choice. Imagine, for example, there are two matching tiles with one stacked on top of the other. If you already removed the other two matches for that same tile set, then you’re stuck, since the only way to remove…

Conversely — and to answer your second question — yes, all boards are solvable (unlike many other solitaire games that can have unsolvable setups).

Re: Show HN: I made a Mahjong browser game

#74
post #52

Earlier quoted context omitted.

Wow! Didn’t know Japanese played majhong too! What are the differences?

The most distinctive feature of the popular Japanese mahjong variants (as opposed to other mahjong gambling games) is probably the own-discard furiten rule: players can't win off others' discards if any tile they previous discard during that hand would complete their hand. (This is distinct from and in addition to more common "sacred discard" restriction against winning off a discard after letting another winning til…

I would add that one other important distinction, though I don't know how unique, is that you can't win off a hand which doesn't have any yaku. This partly explains the popularity of riichi, as it's okay to have riichi only.

Re: Show HN: I made a Mahjong browser game

#75
post #68
post #38

Earlier quoted context omitted.

> Can you add an indicator so that people will know to scroll down for rules and stuff. It's called a "scrollbar" and shown in the browser.

If someone is asking for an scroll indicator, it's safe to assume that, for some reason, the native scroll affordance has been hidden from them.

Indeed - but then the person asking should better look in the systems/browser settings; this has nothing to do with the website.

Re: Show HN: I made a Mahjong browser game

#76
post #9

Earlier quoted context omitted.

That's a good point - I guess that sound effect doesn't go so well with the rest of the atmosphere.

I would also suggest letting the user stew for 10 seconds or so before declaring "No More Moves".

And maybe not make it a modal, but a little message above the board that the user might not initially notice.

(btw great work, I really enjoyed it!) (did you do the art yourself?)

Re: Show HN: I made a Mahjong browser game

#78

I made a version of Mahjong Solitaire for Yahoo! Games back in the early aughties. I was stuck in figuring out how to make each board solvable. I asked Udi Manber, and he obviously in hind sight, was like, "why don't you just place them in pairs to set up?"

Relatable! My first version of the tile generation placed every tile randomly, which meant I always got stuck, haha. Setting the board up in pairs is indeed what solved the issue.

Re: Show HN: I made a Mahjong browser game

#79
post #60

Very nice! Are all hands solvable?

There's always at least 1 "path" to solving a newly generated game, but if you deviate from this path by matching tiles differently, you might end up getting stuck (where you can shuffle the remaining tiles) or even in an impossible situation (where the final two tiles are stacked on top of each other).

Re: Show HN: I made a Mahjong browser game

#80

Earlier quoted context omitted.

I would also suggest letting the user stew for 10 seconds or so before declaring "No More Moves".

And maybe not make it a modal, but a little message above the board that the user might not initially notice. (btw great work, I really enjoyed it!) (did you do the art yourself?)

Most of the tile art was taken from a GitHub repository [1], and most of the background assets (trees, clouds) were taken from a website called Freepik [2] where I have a paid subscription.

I just added some color and assembled everything into a single composition :)

[1]: https://github.com/FluffyStuff/riichi-mahjong-tiles [2]: https://www.freepik.com

Post reply on HN