R-mahjong ⅠⅠ: is hand winning?

R-mahjong ⅠⅠ: is hand winning?

The second part of the series dedicated to the Japanese game "riichi mahjong". It's a little more complicated than the previous one.

Your task is to check if the hand is a winning one. If in the previous mission you were given a ready-made hand, then in this one there will be just a set of tiles in the input data, which may not be victorious.

Let me remind you of the conditions of victory.

  • There should be exactly 14 tiles in the hand.
  • The hand must contain four sets (pon or chi) and one pair.

In this mission, the second argument of the function is added...

You should be an authorized user in order to see the full description and start solving this mission.