7 Card Poker Hand Evaluator

前端 未结 9 767
死守一世寂寞
死守一世寂寞 2021-01-30 01:30

Does anyone know a fast algorithm for evaluating 7 card poker hands? Something which is more efficient than simply brute-force checking a every 21 5-card combination of hands fr

9条回答
  •  攒了一身酷
    2021-01-30 02:21

    May I recommend https://github.com/chenosaurus/poker-evaluator/

    It is written in JavaScript and uses a 128 MB HandRanks.dat file.

    The code is just a few lines and very easy to port to any other language.

提交回复
热议问题