Show HN: 3D Mahjong, Built in CSS
voxjong.com - 77 poäng - 39 kommentarer - 26881 sekunder sedan
Kommentarer (19)
- codingdave - 26536 sekunder sedanIt 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.
- Bender - 11906 sekunder sedanI 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!
- tejonutella - 6943 sekunder sedanLooks cool! Wish I knew how to play Mahjong tho
- rdescartes - 19342 sekunder sedanShould it be named Shanghai solitaire Or Mahjong Solitaire ?
- aranw - 8961 sekunder sedanReally enjoyed that although my final two tiles were stacked and couldn't finish the game!
- sanj - 16939 sekunder sedanThis is lovely! Can I suggest make sure that the board is solveable?
- thenthenthen - 15263 sekunder sedanThere 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)
- akersten - 22891 sekunder sedanIf 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
- koolala - 11458 sekunder sedanI wish you could rotate all the way. On a phone its also easy to do the refresh gesture.
- haunter - 21621 sekunder sedanNow 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.
- Minor49er - 18512 sekunder sedanThis 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
- DuncanCoffee - 23978 sekunder sedanNice! Wish the supported rotation was bigger, maybe +- 90 instead of only 90 deg?
- TazeTSchnitzel - 16195 sekunder sedanIs the lack of a perspective projection option deliberate? CSS can do that too.
- HardwareLust - 25330 sekunder sedanVery nice! Worked great on my shitty old Motorola phone.
- jsmo - 10814 sekunder sedanNice!
- snvzz - 21233 sekunder sedanThis ain't mahjong.
Instead, it is some solitaire using mahjong pieces.
- user3939382 - 19119 sekunder sedanSome people say “mar” jong it’s the weirdest thing.
- apresmoi - 24829 sekunder sedanwtf kind of magic is that? I looked at the repo and... you've built a 3d CSS rendering engine to create this?
- overflyer - 16195 sekunder sedanThis has bothing to do with how Mahjong is actually played.
Nördnytt! 🤓