GithubHelp home page GithubHelp logo

nikolayit / texasholdemgameengine Goto Github PK

View Code? Open in Web Editor NEW
129.0 129.0 69.0 369 KB

Texas Hold 'em Poker Game Engine

License: MIT License

C# 100.00%
csharp texas-holdem texas-holdem-poker texasholdem

texasholdemgameengine's Introduction

texasholdemgameengine's People

Contributors

aleksandra992 avatar bitcoinbrisbane avatar dalorveen avatar damy90 avatar dyanis avatar g-yonchev avatar hiksa avatar kiko81 avatar nikolayit avatar pietklop avatar simoprg avatar todorm85 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

texasholdemgameengine's Issues

Implement minimum bet and raise amount

You have to at least double the previous bet in no-limit Texas Holdem when you make a raise. The least you can bet is the same amount as the big blind.

E.x.lets assume the blinds are 50/100 in a no limit game. Player 1 who is first to act after the big blinds (pre flop) raises to 300. With 100 blinds this means that the actual raise is 200. The minimum that player 2 (Wood) could raise to is therefore 500 (300+200).

The rules are the same for all betting rounds. But in each new betting round the minimum bet is always goes back to the same size as the big blind.

Full house issue

should return full house
if threeOfAKindTypes.Count == 2
with 3 cards of the higher type and 2 of the lower

Proposal on speeding hand checks a bit more

1st - every Lambda where select and orderBy - select first - lines 112 & 140
2nd - split
if flush { straightFlush(just check for straight) or flush }
else { all the rest }

  • this way skips 4OfAKind & Full house checks: if flush available - no higher rank possible
    or..... just add some flag to skip these checks if flush available

Proposal on comparing equal hands by rank type

why not make 1 method comparing all cards if ranks are equal and returning result as soon as possible - hands should come with highest ranked cards first - it looks like it is so - not all of them - may be done easily - straight has to be reversed
in fact it may be a loop after the 2 ifs - not a separate method - me to do it?

question

can this code help me to create my project in unity?

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.