Git Product home page Git Product logo

node-poker-odds-calculator's Introduction

rundef's github stats

Top Langs

node-poker-odds-calculator's People

Contributors

dheffx avatar rundef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-poker-odds-calculator's Issues

add draw evenience

Very nice project , but it should also handle draw cases, currently
node_modules/.bin/poker-odds-calculator AdAh AcAs
outputs
Player #1 - Ah Ad - ~2%
Player #2 - As Ac - ~98%

what are you getting if you give more than 2 hole cards?

I've noticed that you can provide more than 2 cards, but it's not clear what exactly the output means in that case. My guess is that it doesn't understand any game specific rules, so it doesn't understand how to calculate things like pineapple, omaha, stud, and that it just works on an assumption that a hand could contain any number of cards, and the board will run till you have 7 cards?

So, should it be an error to have anything other than two hole cards, as otherwise that would probably mess up any other calculations?

Pocket pair and two pairs on the board

When there's two pairs on the board, and a pocket pair of higher value it does not pick up the players pocket pair.

Instead it ranks another player with nothing as the winner.

image005

If you remove a pair from the board, the hands are then ranked correctly.

image006

I am looking in to this myself right now but would also appreciate the authors help if he still monitors this project.

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.