Code Monkey home page Code Monkey logo

mj_ai's Introduction

mj_ai

麻将AI算法

基于多种方式实现麻将ai算法

1、one_color_knn基于knn算法,选择与听牌表差异最小的目标进行凑牌

2、probability基于概率计算与胡牌表,选择打出后胡牌概率最大的牌打出

a、当前包含lua版和c语言版本。

b、判断万筒条三色的14张麻将,C语言版本单线程需要6秒,lua版本需要900秒。

c、下一步思路,根据花色拆分,分别求取概率,再进行汇总。

3、part knn算法

1、根据去掉每张牌以后,胡牌概率进行排序。选择最优打出的牌

2、概率采用局部估算的方式,分别计算各种麻将的分配形式下牌的得分

3、目前没有加入字牌以及吃碰杠的判断

mj_ai's People

Contributors

yuanfengyun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.