GithubHelp home page GithubHelp logo

oddscalc's Introduction

oddscalc

本项目用以解释手牌胜率计算的原理。

详细信息请参阅:http://thepokerlogic.com/post/oddscalc.html

PokerLogic的线上胜率计算器:http://thepokerlogic.com/post/oddscalc.html

扑克牌的定义

Rank 大小,从2到A Suit 花色,spade,heart,diamond,club,取首字缩写,AS代表黑桃A,以此类推。

Ranking

  • rank_kickers(), 用小数位上2的倍数来判断踢脚的大小_
  • rank_hand_Int(), 用字符串匹配的方式,依次判断手牌+公共牌组成的最大牌型牌力,最后加入踢脚值

获得胜率

循环出所有剩余牌型,分别记录获胜的次数,并得出总数

oddscalc's People

Contributors

lyf1314 avatar lxstar avatar pokerlogic avatar

Watchers

James Cloos avatar Andrew Cui 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.