Live data from Hacker News

Show HN: I made a Mahjong browser game

jongmah.com

61–70 of 88 posts

Re: Show HN: I made a Mahjong browser game

#64
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.

You're right, there is something called a "scrollbar", but many people don't see it because they are using macOS which for some reason hides the scrollbars by default. Also phones/touchpads don't see scrollbars I think.

macOS does indeed show the scrollbar at all times when a input device other than a touchpad is attached.

My desktop Mac never hides the scrollbar, as it uses a normal mouse, however when I was using a Magic Trackpad the scrollbar would indeed hide unless I was actively scrolling.

Odd behavior.

Re: Show HN: I made a Mahjong browser game

#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?

Re: Show HN: I made a Mahjong browser game

#67
It captures my mouse cursor in a weird way, having real slow acceleration compared to when I move it outside the browser window.

I didn't even know that was possible, and also it's annoying me that it's possible. Maybe it's the "Pointer Lock" JavaScript API?

Re: Show HN: I made a Mahjong browser game

#68
post #38

Hey, Nice Game! One suggestion - Can you add an indicator so that people will know to scroll down for rules and stuff. I figured this out really late and by then, I had already googled all the rules.

> 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.

Re: Show HN: I made a Mahjong browser game

#69
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 the top one is to match it with another match — but you can’t get to the only remaining matching tile since it’s covered by that tile.

Re: Show HN: I made a Mahjong browser game

#70
post #64

Earlier quoted context omitted.

You're right, there is something called a "scrollbar", but many people don't see it because they are using macOS which for some reason hides the scrollbars by default. Also phones/touchpads don't see scrollbars I think.

macOS does indeed show the scrollbar at all times when a input device other than a touchpad is attached. My desktop Mac never hides the scrollbar, as it uses a normal mouse, however when I was using a Magic Trackpad the scrollbar would indeed hide unless I was actively scrolling. Odd behavior.

There's actually a system preference that shows/hides the scrollbar.

System Preferences > General > Show scroll bars

• Automatically based on mouse or trackpad

• When scrolling

• Always (because I remember when smart phones didn't exist)

I keep mine at option 3 because I'm a dinosaur

Post reply on HN