6 kyu
Mahjong winning hand Validation #1: DA SI XI(大四喜)
54 of 58myjinxin2015
Loading description...
Puzzles
Games
Regular Expressions
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Just did a translation to Python. I love Mahjong, and I'm happy to make it more accessible where I can.
nice
I wonder how did you input Chinese character in title. (Just for my curiosity)
Can't you just directly type Chinese characters in the title? 🤔
Umm, I mean people whose mother tongue is not Chinese.
But the author is Chinese XD.
大四喜
Edit: (weird, it displayed good at first...)
You can google how to install an IME on your computer. Windows makes the process pretty easy, but that's how you can type in different languages' character set if you don't have specific keys for it on your keyboard.
Haha, so kind of you. I thought the author was not a native speaker of Chinese at first. I was just curious to ask how non-native speakers recognize and input Chinese characters.
done
JavaScript.
The images in the kata description aren't working.
Why false? I believe it's a buggy test:
I passed it after submitting again.
the message is for the testcase below..
I think you're right, although I wonder why my code would had failed the case above then. Unfortunately I don't have it open anymore. I couldn't find any more faulty cases even after trying.
Approved
Never played this game, will see if i can follow your descriptions next time (first was easy);-)...
yes, first is the easy one ;-)
Never played Mahjong? Really? There were/are a lot of good game implementations for DOS, Windows, Android,... The implementation in Win7/8 is very nice! A very interesting, nice game for smart people.
Yes really, i know there are much implementations...;-). I always thought it's boring only to find pairs, so i prefered playing reversi/othello or chess (some years ago i wrote a "good" reversi engine for phones). But next time i will solve the next part of this "Mahjong game" here, it's not too difficult:-)...
it's boring only to find pairs
is another game namely "ShangHai Mahjong". It not a really mahjong game. It's only a match-remove game like my kata link up.A really mahjong game is like the poker game. It's a base on draw-and-discard card games.
Ah ok, thanks for the info;-)! I normally don't play computer games, programming consumes enough (often too much) time in front of the keyboard;-). So perhaps i learn from your kata... and your other game katas (i know there are two left waiting for a solution;-)).