{"id":19857845,"url":"https://github.com/poker-sang/mahjong","last_synced_at":"2025-05-02T02:30:41.145Z","repository":{"id":63809044,"uuid":"415494219","full_name":"Poker-sang/Mahjong","owner":"Poker-sang","description":"非查表式日本麻将听牌算法（C#、C++和C++/CLI）","archived":false,"fork":false,"pushed_at":"2024-07-25T10:29:00.000Z","size":345,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T21:07:27.629Z","etag":null,"topics":["cpp","cpp20","cppcli","csharp","mahjong","wpf"],"latest_commit_sha":null,"homepage":"https://www.bilibili.com/read/cv4601162","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Poker-sang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-10T05:25:29.000Z","updated_at":"2024-07-25T10:29:03.000Z","dependencies_parsed_at":"2024-07-25T12:10:44.965Z","dependency_job_id":null,"html_url":"https://github.com/Poker-sang/Mahjong","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Poker-sang%2FMahjong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Poker-sang%2FMahjong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Poker-sang%2FMahjong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Poker-sang%2FMahjong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Poker-sang","download_url":"https://codeload.github.com/Poker-sang/Mahjong/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972422,"owners_count":21673600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp20","cppcli","csharp","mahjong","wpf"],"created_at":"2024-11-12T14:19:58.702Z","updated_at":"2025-05-02T02:30:39.758Z","avatar_url":"https://github.com/Poker-sang.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mahjong\n\n**不使用**查表法和遍历法的高效日麻判听牌算法。\n\n长期维护的算法介绍文档：《[日麻听牌判断归类算法](https://www.bilibili.com/read/cv4601162)》，大致原理是对牌组进行分类剪枝。\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth colspan=\"2\"\u003e\n            完整型判断Lv.1\n        \u003c/th\u003e\n        \u003cth colspan=\"2\"\u003e\n            完整型判断Lv.2\n        \u003c/th\u003e\n        \u003cth\u003e\n            ~指“不完整型”\n        \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e牌数\u003c/th\u003e\n        \u003cth\u003eIntegrityType\u003c/th\u003e\n        \u003cth\u003e类型名\u003c/th\u003e\n        \u003cth\u003e判断听牌方法\u003c/th\u003e\n        \u003cth\u003e备注\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd rowspan=\"2\"\u003e3n\u003c/td\u003e\n        \u003ctd\u003eType0\u003c/td\u003e\n        \u003ctd\u003e完整型\u003c/td\u003e\n        \u003ctd\u003e直接判断（IntegrityJudge()）\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eTypeEx\u003c/td\u003e\n        \u003ctd\u003e雀半不完整型\u003c/td\u003e\n        \u003ctd\u003e去对+取坎张\u003c/td\u003e\n        \u003ctd\u003e半~与雀头~合并而成\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd rowspan=\"2\"\u003e3n+1\u003c/td\u003e\n        \u003ctd rowspan=\"2\"\u003eType1\u003c/td\u003e\n        \u003ctd\u003e半不完整型\u003c/td\u003e\n        \u003ctd\u003e取坎张（会成对出现）\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e雀面不完整型\u003c/td\u003e\n        \u003ctd\u003e遍历+去对\u003c/td\u003e\n        \u003ctd\u003e雀头~与面子~合并而成\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd rowspan=\"2\"\u003e3n+2\u003c/td\u003e\n        \u003ctd rowspan=\"2\"\u003eType2\u003c/td\u003e\n        \u003ctd\u003e雀头不完整型\u003c/td\u003e\n        \u003ctd\u003e去对（去掉一个对子）\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e面子不完整型\u003c/td\u003e\n        \u003ctd\u003e遍历（3-9次）+与前后块连接\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n仓库提供C#、C++ (Standard: 20)、C++/CLI三种语言实现，也可以按照文档用其他语言实现。\n\n若有BUG欢迎提[ISSUE](https://github.com/Poker-sang/Mahjong/issues)\n\n## LICENSE\n\n[MIT LICENSE](https://github.com/Poker-sang/Mahjong/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoker-sang%2Fmahjong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoker-sang%2Fmahjong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoker-sang%2Fmahjong/lists"}