Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Player who raises or bets with all his money is now automatically all-in. There 
was a
problem when a player tried to raise with a value higher than his stack but 
that's
solved now. There also was a double all-in message.

There is still a problem if a player wants to call a bet that's higher than his
stack. Then the pots must be split. I don't see anywhere where pots are split 
actually...

Added the BettingRulesTest class for testing the different betting rules. Still
working on that.

Original comment by [email protected] on 15 Jul 2007 at 2:19

from cspoker.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
If a player calls a bet that is higher than his stack. He should invoke the 
all-in
method. All all-in players in a round are remembered and the pot is split at 
the end
of each round. It had to be implemented this way because several people can go 
all-in
in one round with different number of chips.

Original comment by [email protected] on 15 Jul 2007 at 4:03

from cspoker.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Maybe it is better if we do not allow call,raise and bet with someone's whole 
stack
and throw an exception. A player should explicitly choose to go all-in. To 
prevent
going all-in by making a mistake for example (It's just my opinion, but it is
discutable.)

Original comment by [email protected] on 15 Jul 2007 at 4:53

from cspoker.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Hmm, that's another way to do it of course :) I think it's best to re-use the
IllegalActionException for those cases. I'll implement it right away.

Original comment by [email protected] on 15 Jul 2007 at 6:15

from cspoker.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024

Original comment by [email protected] on 21 Jul 2007 at 4:33

  • Changed state: Fixed

from cspoker.

Related Issues (20)

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.