{"id":13418184,"url":"https://github.com/yuanfengyun/q_algorithm","last_synced_at":"2025-05-15T06:05:51.434Z","repository":{"id":61981769,"uuid":"77876960","full_name":"yuanfengyun/q_algorithm","owner":"yuanfengyun","description":"棋牌的胡牌算法，包括麻将、跑胡子、扑克。实现 lua 、c++ 、c# 、golang 、js 、java 、python 版本。( Mahjong  algorithm )","archived":false,"fork":false,"pushed_at":"2024-06-14T02:49:03.000Z","size":30285,"stargazers_count":2027,"open_issues_count":18,"forks_count":839,"subscribers_count":131,"default_branch":"master","last_synced_at":"2025-05-03T15:02:14.920Z","etag":null,"topics":["algorithm","doudizhu","lua","majhong","paohuzi"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuanfengyun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-03T02:23:46.000Z","updated_at":"2025-04-28T09:05:10.000Z","dependencies_parsed_at":"2024-08-05T02:01:27.132Z","dependency_job_id":"78c1431d-6eb2-4541-8a3d-b94505745a1a","html_url":"https://github.com/yuanfengyun/q_algorithm","commit_stats":null,"previous_names":["yuanfengyun/qipai_algorithm","yuanfengyun/qipai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanfengyun%2Fq_algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanfengyun%2Fq_algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanfengyun%2Fq_algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanfengyun%2Fq_algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuanfengyun","download_url":"https://codeload.github.com/yuanfengyun/q_algorithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283339,"owners_count":22045140,"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":["algorithm","doudizhu","lua","majhong","paohuzi"],"created_at":"2024-07-30T22:00:59.414Z","updated_at":"2025-05-15T06:05:46.418Z","avatar_url":"https://github.com/yuanfengyun.png","language":"Lua","readme":"# qipai\n\n胡牌算法，特殊牌型判断算法\n\n1、跑胡子算法\n\n实现:\n\n    有C++版（基于递归，回溯）。\n\n    lua版（基于查表）。\n\n2、高效的麻将胡牌算法，能处理任意张赖子：\n\n速度：1S左右处理100万次每次四个赖子的麻将判胡；5秒处理1亿次八个赖子判胡（golang虚拟机上实测）。\n\n实现:\n\n      基于花色切分，然后查表。\n      \n      有多种语言版本：lua、c++、c#、golang、js、java、python。\n \n3、无敌的拆牌判胡算法，不占用额外内存，速度、简洁度超过查表法。支持任意赖子数量。\n\n4、特殊牌型判断：一条龙、掐张、七对、碰碰胡、十三幺、单吊、大吊车、清一色、缺门、门清。\n","funding_links":[],"categories":["TODO scan for Android support in followings","Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuanfengyun%2Fq_algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuanfengyun%2Fq_algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuanfengyun%2Fq_algorithm/lists"}