All Projects → yuanfengyun → Qipai_algorithm

yuanfengyun / Qipai_algorithm

棋牌的胡牌算法,包括麻将、跑胡子、扑克。实现 lua 、c++ 、c# 、golang 、js 、java 、python 版本。( Mahjong algorithm )

Programming Languages

lua
6591 projects
C++
36643 projects - #6 most used programming language
javascript
184084 projects - #8 most used programming language
C#
18002 projects
c
50402 projects - #5 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Qipai algorithm

Oh My Python
剑指offer(python版)/ 算法图解 / python基础 / 数据结构
Stars: ✭ 119 (-93.02%)
Mutual labels:  algorithm
Foundry
The Cognitive Foundry is an open-source Java library for building intelligent systems using machine learning
Stars: ✭ 124 (-92.73%)
Mutual labels:  algorithm
Algo ds notes
It is a repository that is a collection of algorithms and data structures with implementation in various languages.
Stars: ✭ 1,897 (+11.26%)
Mutual labels:  algorithm
Codetective
a tool to determine the crypto/encoding algorithm used according to traces from its representation
Stars: ✭ 121 (-92.9%)
Mutual labels:  algorithm
Turf Swift
A Swift language port of Turf.js.
Stars: ✭ 123 (-92.79%)
Mutual labels:  algorithm
Apachecn Algo Zh
ApacheCN 数据结构与算法译文集
Stars: ✭ 10,498 (+515.72%)
Mutual labels:  algorithm
Algosolutions
LeetCode, LintCode, Project Euler, SGU, HackerRank, Cracking the Coding Interview(ctci)🌴
Stars: ✭ 117 (-93.14%)
Mutual labels:  algorithm
Leetcode Sol Res
Clean, Understandable Solutions and Resources for LeetCode Online Judge Algorithm Problems.
Stars: ✭ 1,647 (-3.4%)
Mutual labels:  algorithm
Awesome Data Science Viz
💥 📈 A curated list of data science, analysis and visualization tools
Stars: ✭ 124 (-92.73%)
Mutual labels:  algorithm
Codezilla
⚡️ codezilla ⚡️ One giant 🦖 collection of algorithms & design patterns.
Stars: ✭ 127 (-92.55%)
Mutual labels:  algorithm
Algorithm Archive
A collaborative book on algorithms
Stars: ✭ 1,880 (+10.26%)
Mutual labels:  algorithm
Algs4 Py
A Python library for the textbook Algorithms, 4th edition
Stars: ✭ 122 (-92.84%)
Mutual labels:  algorithm
Bitmap
C++ Bitmap Library
Stars: ✭ 125 (-92.67%)
Mutual labels:  algorithm
Algorithm basic java
☠️ This is a repository that summarizes the algorithmic problems that are mainly in coding interviews. It is written based on the Java language.
Stars: ✭ 121 (-92.9%)
Mutual labels:  algorithm
Hackerrank
📗 Solutions of more than 380 problems of Hackerrank accross several domains.
Stars: ✭ 128 (-92.49%)
Mutual labels:  algorithm
Sounder
An intent recognizing algorithm to predict the intent of a given text.
Stars: ✭ 118 (-93.08%)
Mutual labels:  algorithm
Java Ds Algorithms
Data Structures and Algorithms in Java
Stars: ✭ 125 (-92.67%)
Mutual labels:  algorithm
Notes
Including JVM, Java concurrency, Spring framework, Data structure and Algorithm, Computer network, Design pattern, Python, C++, Linux, Mysql, Redis,MATLAB, Git and other tools, etc.
Stars: ✭ 131 (-92.32%)
Mutual labels:  algorithm
Leetcode Editor
Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Stars: ✭ 2,222 (+30.32%)
Mutual labels:  algorithm
Algorithms
📝 算法导论与JavaScript实现
Stars: ✭ 126 (-92.61%)
Mutual labels:  algorithm

qipai

棋牌的胡牌算法,特殊牌型判断算法

腾讯课堂视频讲解:https://ke.qq.com/course/360581?tuin=104cb0e2

1、跑胡子算法

实现:

有C++版(基于递归,回溯)。

lua版(基于查表)。

2、高效的麻将胡牌算法,能处理任意张赖子:

速度:1S左右处理100万次每次四个赖子的麻将判胡;5秒处理1亿次八个赖子判胡(golang虚拟机上实测)。

实现:

  基于花色切分,然后查表。
  
  有多种语言版本:lua、c++、c#、golang、js、java、python。

3、无敌的拆牌判胡算法,不占用额外内存,速度、简洁度超过查表法。支持任意赖子数量。

4、特殊牌型判断:一条龙、掐张、七对、碰碰胡、十三幺、单吊、大吊车、清一色、缺门、门清。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].