All Projects → Z8264 → poker-calculator

Z8264 / poker-calculator

Licence: other
Poker calculator for Texas Hold’em

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to poker-calculator

texas-poker-engine
Dummy Texas Poker Engine open source edition
Stars: ✭ 4 (-81.82%)
Mutual labels:  poker, texas, holdem
rs-poker
No description or website provided.
Stars: ✭ 32 (+45.45%)
Mutual labels:  poker, holdem
Casino Holdem
PHP 7+ Texas Holdem extension to Cysha/Casino
Stars: ✭ 17 (-22.73%)
Mutual labels:  poker
pluribus-hand-parser
Parsing the hand histories that poker AI Pluribus played
Stars: ✭ 54 (+145.45%)
Mutual labels:  poker
Deep Cfr
Scalable Implementation of Deep CFR and Single Deep CFR
Stars: ✭ 158 (+618.18%)
Mutual labels:  poker
Rlcard
Reinforcement Learning / AI Bots in Card (Poker) Games - Blackjack, Leduc, Texas, DouDizhu, Mahjong, UNO.
Stars: ✭ 980 (+4354.55%)
Mutual labels:  poker
Qnmahjongserver
房卡麻将棋牌解决方案
Stars: ✭ 196 (+790.91%)
Mutual labels:  poker
Roomai
A toolkit for developing and comparing AI-bots of imperfect information and imcomplete information games.
Stars: ✭ 306 (+1290.91%)
Mutual labels:  poker
bet
This repository holds the implementation code of Pangea Poker white paper: https://bit.ly/3bdCz0Z
Stars: ✭ 15 (-31.82%)
Mutual labels:  poker
Pluribus
Implementation of Pluribus by Noam Brown & Tuomas Sandholm, a Superhuman AI for 6-MAX No-Limit Holdem Poker Bot.
Stars: ✭ 92 (+318.18%)
Mutual labels:  poker
Poker
Poker framework for Python
Stars: ✭ 248 (+1027.27%)
Mutual labels:  poker
Pypokergui
GUI application for PyPokerEngine
Stars: ✭ 72 (+227.27%)
Mutual labels:  poker
Pokr
Make agile estimating and planning easy with our online planning or scrum poker tool
Stars: ✭ 44 (+100%)
Mutual labels:  poker
Pokerrl
Framework for Multi-Agent Deep Reinforcement Learning in Poker
Stars: ✭ 214 (+872.73%)
Mutual labels:  poker
Poker
Fully functional Pokerbot that works on PartyPoker and PokerStars, scraping tables with Open-CV (adaptable via gui) and making decisions based on a genetic algorithm and montecarlo simulation for poker equity calculation. Binaries can be downloaded with this link:
Stars: ✭ 873 (+3868.18%)
Mutual labels:  poker
Casino Server
🔥 An online poker game server powered by Redis, node.js and socket.io
Stars: ✭ 721 (+3177.27%)
Mutual labels:  poker
Texas Hold Em Poker
德州扑克服务器Go实现
Stars: ✭ 53 (+140.91%)
Mutual labels:  poker
Skpokereval
7-card Texas Hold'em hand evaluator
Stars: ✭ 193 (+777.27%)
Mutual labels:  poker
easyPokerHUD
This is the official repository for easyPokerHUD.
Stars: ✭ 40 (+81.82%)
Mutual labels:  poker
poinz
Distributed Planning Poker
Stars: ✭ 105 (+377.27%)
Mutual labels:  poker

Poker Calculator

Poker Calculator

Install

npm i poker-calculator

Getting Started

const PokerCalculator = require('poker-calculator');

PokerCalculator.hand([1, 2, 3, 4, 5, 6, 7]);

// {
//    type: 9,
//    cards: [7, 6, 5, 4, 3],
//    value: 9286415,
//    name: 'Straight Flush',
// }

Poker Data Types

Rank

Rank A 2 3 4 5 6 7 8 9 10 J Q K

Suit

Name Symbol Abbreviation
HEART H
CLUB C
DIAMOND D
SPADE S

Card

Use Numbers to represent playing cards

Suit/Rank A 2 3 4 5 6 7 8 9 10 J Q K
HEART 1 2 3 4 5 6 7 8 9 10 11 12 13
CLUB 14 15 16 17 18 19 20 21 22 23 24 25 26
DIAMOND 27 28 29 30 31 32 33 34 35 36 37 38 39
SPADE 40 41 42 43 44 45 46 47 48 49 50 51 52

Hand Type

Hand Type Number Chinese
Royal Flush 10 皇家同花顺
Straight Flush 9 同花顺
Four Of A Kind 8 四条
Full House 7 葫芦
Flush 6 同花
Straight 5 顺子
Three Of A Kind 4 三条
Two Pair 3 两对
One Pair 2 一对
High Card 1 高牌

APIs

Common Methods

Methods Description
convert
getRank
getSuit
getSuitSymbol

convert(rank, suit)

PokerCalculator.convert('A', 'HEART');
// 1

PokerCalculator.convert('5', 'C'); 
// 18

PokerCalculator.convert('K', '♦'); 
// 39

getRank(Number)

PokerCalculator.getRank(13);
// "K"

getSuit(Number)

PokerCalculator.getSuit(13);
// "HEART"

getSuitSymbol(Number)

PokerCalculator.getSuitSymbol(13) 
// "♥"

Texas Hold’em Methods

Methods Description
hand

hand([Number, Number, ...])

@return Description
type
cards
value
name
PokerCalculator.hand([1, 2, 3, 4, 5, 6, 7]);
// {
//    type: 9,
//    cards: [7, 6, 5, 4, 3],
//    value: 9286415,
//    name: 'Straight Flush',
// }

PokerCalculator.hand([17, 30, 43, 20, 26, 34, 39]);
// {
//    type: 7,
//    cards: [17, 30, 43, 26, 39],
//    value: 7165619,
//    name: 'Full House',
// }

License

MIT

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].