25 comments

[ 2.8 ms ] story [ 42.4 ms ] thread
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.
Very nice! Worked great on my shitty old Motorola phone.
wtf kind of magic is that? I looked at the repo and... you've built a 3d CSS rendering engine to create this?
Nice! Wish the supported rotation was bigger, maybe +- 90 instead of only 90 deg?
If I click fast enough on mobile it starts trying to select/highlight text, should be able to prevent that with CSS too. I find this is somehow a common issue that separates a lot of PWAs from real apps, the browser text engine is still lurking there in the background trying to recall us all to the glory days of hypermedia
Now make it _real_ mahjong (; https://en.wikipedia.org/wiki/Mahjong

Which makes me wonder which ruleset would be the easiest to implement. Probably MCR or HK, riichi has too many edge cases and sepcial rules and yakus.

This ain't mahjong.

Instead, it is some solitaire using mahjong pieces.

Should it be named Shanghai solitaire Or Mahjong Solitaire ?
Some people say “mar” jong it’s the weirdest thing.
This is pretty cool. I like the look and the gameplay. Though playing on mobile, some of the roatation gestures caused the page to refesh on me a couple of times since they triggered the browser's "drag down to refresh" interaction
Thanks for the report! I added a patch that hopefully fixes that.
This is lovely! Can I suggest make sure that the board is solveable?
This has bothing to do with how Mahjong is actually played.
Is the lack of a perspective projection option deliberate? CSS can do that too.
There are some super weird bugs, sometimes only one of the two pieces are removed and sometimes the field goes blank? Also on every move the faves change?! iOS here. And yeah, no majiang, but still super cool! Nostalgic vibes waiting for my fries and playing the Photo Play touch screen gambling machine (after unlocking it by tapping the words photo and play on the logo with two different fingers and entering the code)
I think this is a good example of what CSS can do and probably was not easy to make but I will likely stick with Mahjong that comes with most Linux distributions as they follow rules that people I may end up playing against would know and they have many layouts. I could see this being applied to other things however such as games that require building or repairing something. Or something similar to Minecraft?

Impressive work!

I wish you could rotate all the way. On a phone its also easy to do the refresh gesture.
Really enjoyed that although my final two tiles were stacked and couldn't finish the game!
Looks cool! Wish I knew how to play Mahjong tho
Coding + Mahjong related story:

Back in college, while majoring in CS, I had a rough time dealing with semicolons, typos, missed characters while coding.

I thought to myself "I wonder if playing Mahjong in the Windows games would help me get better at scanning code and finding these types of errors". So I tried it and, lo and behold, it did.

Also, in this day and age of LLMs writing a lot of the code, scanning for missing semicolons in code sounds like "I was great at fixing telegraphs!"

Beautiful work, thank you for showing it
Disappointed to see that this is solitaire and not Riichi :( would love to see more implementations of actual mahjong
i'm confused how to play it but it's pretty amazing this was done with css cool stuff man