poker.git
14 years agoCleanup bot code.
W. Trevor King [Tue, 7 Dec 2010 17:51:24 +0000 (12:51 -0500)]
Cleanup bot code.

14 years agoFix folding logic in table.Player.decide().
W. Trevor King [Tue, 7 Dec 2010 17:49:29 +0000 (12:49 -0500)]
Fix folding logic in table.Player.decide().

14 years agoPrint bot stderr if a bot dies before ending.
W. Trevor King [Tue, 7 Dec 2010 17:39:50 +0000 (12:39 -0500)]
Print bot stderr if a bot dies before ending.

14 years agoCopy the player list in pbot.py so we kill all players.
W. Trevor King [Tue, 7 Dec 2010 16:49:03 +0000 (11:49 -0500)]
Copy the player list in pbot.py so we kill all players.

In the previous implementation, Table removed players from the list as
they died, so the `finally` block in pbot.py only killed the winner.

14 years agoAdd docstrings and doctests to pbot.py + Python cleanups.
W. Trevor King [Tue, 7 Dec 2010 16:43:02 +0000 (11:43 -0500)]
Add docstrings and doctests to pbot.py + Python cleanups.

Also fix a number of bugs that a fixed pbot.py turned up in deck.py
and table.py.

14 years agoAdd docstrings and doctests to table.py + Python cleanups.
W. Trevor King [Tue, 7 Dec 2010 15:57:52 +0000 (10:57 -0500)]
Add docstrings and doctests to table.py + Python cleanups.

14 years agoAdd docstrings and doctests to deck.py + Python cleanups.
W. Trevor King [Tue, 7 Dec 2010 13:26:48 +0000 (08:26 -0500)]
Add docstrings and doctests to deck.py + Python cleanups.

14 years agoAdd docstrings and doctests to combinations.py.
W. Trevor King [Mon, 6 Dec 2010 20:47:25 +0000 (15:47 -0500)]
Add docstrings and doctests to combinations.py.

14 years agoBegan versioning.
Travis Hoppe [Mon, 6 Dec 2010 20:29:39 +0000 (15:29 -0500)]
Began versioning.