Author: bkuhn
Date: Mon Aug 18 04:15:55 2008
New Revision: 4300
URL: http://svn.gna.org/viewcvs/pokersource?rev=4300&view=rev
Log:
[EMAIL PROTECTED]: bkuhn | 2008-08-17 22:14:32 -0400
Various changes to handle counting of missed blinds
In pokergame.py:
* Added field missed_big_blind_count
* Added it to __str__ formatter
* Wrote method resetMissedBlinds(), which clears missed_blind and resets
above counter.
* Replaced occurrences of "player.missed_blind = None" with call to that
method.
* Added increment of that in updateMissed(), but only if it is the big
blind being missed.
In blinds.py.in:
* Added test of the missed blind count to the check_blinds() method
* Added additional checks for where the button is and confirming that
various things happen in the hand history. These are unrelated to the
changes I've made, but generally improve the tests and add
double-checks.
In test-pokerplayer.py.in:
* Added missed_blind_count to string formatter test.
# testmessages.py is collateral damage. I started getting it ready but
decided not to use it.
Modified:
trunk/ (props changed)
trunk/poker-engine/ChangeLog
trunk/poker-engine/pokerengine/pokergame.py
trunk/poker-engine/tests/blinds.py.in
trunk/poker-engine/tests/test-pokerplayer.py.in
trunk/poker-engine/tests/testmessages.py
_______________________________________________
Pokersource-commits mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-commits