R-mahjong ⅠⅠ: is hand winning?
日本游戏riichi mahjong 系列的第二部分。这一部分比前一部分要复杂一些。
您的任务是检查这手牌是否能赢。如果在前一个任务中,您得到的是一手现成的牌,那么在这个任务中,输入数据中将只有一组牌,这组牌可能不会获胜。
让我提醒您胜利的条件。
- 胡牌中必须正好有 14 张牌。
- 手牌中必须包含四组(碰或对)和一对。
在这个任务中,函数的第二个参数被添加 - 所谓的开放套牌列表。在游戏中,这样的套子是通过拿走对手丢弃的一张不必要的牌而产生的。用这张牌补充的集合被放在一边,不再发生变化。请注意,对子不能是开放的。
需要检查每个开放的集合是否有效。例如,"s456 "是一个有效的集合,而 "m124 "或 "p11...
CheckiO Extensions allow you to use local files to solve missions. More info in a blog post.
In order to install CheckiO client you'll need installed Python (version at least 3.8)
Install CheckiO Client first:
pip3 install checkio_client
Configure your tool
checkio --domain=py config --key=
Sync solutions into your local folder
checkio sync
(in beta testing) Launch local server so your browser can use it and sync solution between local file end extension on the fly. (doesn't work for safari)
checkio serv -d
Alternatevly, you can install Chrome extension or FF addon
checkio install-plugin
checkio install-plugin --ff
checkio install-plugin --chromium
Read more here about other functionality that the checkio client provides. Feel free to submit an issue in case of any difficulties.
Welcome to Pair Programming! Engage in real-time collaboration on coding projects by starting a session and sharing the provided unique URL with friends or colleagues. This feature is perfect for joint project development, debugging, or learning new skills together. Simply click 'Start Session' to begin your collaborative coding journey!
You are trying to join a pair programming session that has not started yet.
Please wait for the session creator to join.
It looks like the creator of the pair programming session closed the editor window.
It might happen accidentally, so that you can wait for reconnection.