goldenXcode / cspoker

Automatically exported from code.google.com/p/cspoker
0 stars 0 forks source link

Allowed bet size bug after allin #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
19:52:14,869 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #1: RuleBasedBot v1-1 ($4997 in chips)
19:52:14,869 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #2: RuleBasedBot v2-1 ($4451 in chips)
19:52:14,869 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #3: SearchBot (4 Part Distribution Showdown
Node factory) v1-1 ($29 in chips)
19:52:14,869 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #4: SearchBot (4 Part Distribution Showdown
Node factory) v1-2 ($676 in chips)
19:52:14,869 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #5: RuleBasedBot v1-2 ($4907 in chips)
19:52:14,869 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #6: RuleBasedBot v2-2 ($14940 in chips)
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:378)
[collectSmallBlind] - RuleBasedBot v2-1: posts small blind $5
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:401)
[collectBigBlind] - SearchBot (4 Part Distribution Showdown Node factory)
v1-1: posts big blind $10
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:74)
[<init>] - *** HOLE CARDS ***
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79)
[<init>] - Dealt to RuleBasedBot v1-1 [Js, Jd]
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79)
[<init>] - Dealt to RuleBasedBot v2-1 [8c, 3c]
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79)
[<init>] - Dealt to SearchBot (4 Part Distribution Showdown Node factory)
v1-1 [2d, 4d]
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79)
[<init>] - Dealt to SearchBot (4 Part Distribution Showdown Node factory)
v1-2 [Qh, Ac]
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79)
[<init>] - Dealt to RuleBasedBot v1-2 [9h, 7d]
19:52:14,869 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79)
[<init>] - Dealt to RuleBasedBot v2-2 [2c, 9c]
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call]
- SearchBot (4 Part Distribution Showdown Node factory) v1-2 calls.
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call]
- RuleBasedBot v1-2 calls.
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call]
- RuleBasedBot v2-2 calls.
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call]
- RuleBasedBot v1-1 calls.
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call]
- RuleBasedBot v2-1 calls.
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.PlayingTableState.java:186) [check]
- SearchBot (4 Part Distribution Showdown Node factory) v1-1 checks.
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.rounds.FlopRound.java:45) [<init>] -
*** FLOP *** [10d, Jc, 3h]
19:52:14,919 INFO 
(org.cspoker.server.common.gamecontrol.PlayingTableState.java:186) [check]
- RuleBasedBot v2-1 checks.
19:52:14,969 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:281)
[goAllIn] - SearchBot (4 Part Distribution Showdown Node factory) v1-1:
raises to $19 and is all-in
19:52:15,019 WARN  (org.cspoker.client.bots.bot.search.SearchBot.java:93)
[run] - Raise bounds: 19 to 647
19:52:15,019 ERROR (org.cspoker.client.bots.bot.search.SearchBot.java:94)
[run] - org.cspoker.common.api.shared.exception.IllegalActionException: #4:
SearchBot (4 Part Distribution Showdown Node factory) v1-2 ($666 in chips)
can not raise with $19. ERROR : the bet amount must be at least the amount
of the previous bet/raise in the current round
19:52:15,019 ERROR
(org.cspoker.common.util.threading.SingleThreadRequestExecutor.java:80)
[run] - java.lang.IllegalStateException: Action was not allowed.
java.lang.IllegalStateException: Action was not allowed.
    at org.cspoker.client.bots.bot.search.SearchBot$1.run(SearchBot.java:95)
    at
org.cspoker.common.util.threading.SingleThreadRequestExecutor$1.run(SingleThread
RequestExecutor.java:74)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
ScheduledThreadPoolExecutor.java:98)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedul
edThreadPoolExecutor.java:207)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8
86)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.cspoker.common.api.shared.exception.IllegalActionException:
#4: SearchBot (4 Part Distribution Showdown Node factory) v1-2 ($666 in
chips) can not raise with $19. ERROR : the bet amount must be at least the
amount of the previous bet/raise in the current round
    at
org.cspoker.server.common.gamecontrol.rounds.BettingRound.raise(BettingRound.jav
a:181)
    at
org.cspoker.server.common.gamecontrol.PlayingTableState.raise(PlayingTableState.
java:203)
    at org.cspoker.server.common.gamecontrol.PokerTable.raise(PokerTable.java:323)
    at
org.cspoker.server.common.HoldemPlayerContextImpl.betOrRaise(HoldemPlayerContext
Impl.java:25)
    at
org.cspoker.common.api.lobby.holdemtable.holdemplayer.context.ForwardingRemoteHo
ldemPlayerContext.betOrRaise(ForwardingRemoteHoldemPlayerContext.java:35)
    at
org.cspoker.client.bots.bot.search.action.RaiseAction.perform(RaiseAction.java:4
0)
    at
org.cspoker.client.bots.bot.search.node.BotActionNode.performbestAction(BotActio
nNode.java:66)
    at org.cspoker.client.bots.bot.search.SearchBot$1.run(SearchBot.java:70)
    ... 9 more

Original issue reported on code.google.com by guy...@gmail.com on 5 Mar 2009 at 7:27

GoogleCodeExporter commented 9 years ago
13:43:00,199 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #1: RuleBasedBot v1-1 ($4922 in chips)
13:43:00,199 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #2: RuleBasedBot v2-1 ($4448 in chips)
13:43:00,199 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #3: SearchBot (4 Part Distribution Showdown Node
factory) v1-1 ($5096 in chips)
13:43:00,199 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #4: SearchBot (4 Part Distribution Showdown Node
factory) v1-2 ($5562 in chips)
13:43:00,199 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #5: RuleBasedBot v1-2 ($5020 in chips)
13:43:00,199 WARN  (org.cspoker.server.common.gamecontrol.Game.java:197)
[dealNewHand] - New game with #6: RuleBasedBot v2-2 ($4952 in chips)
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:378)
[collectSmallBlind] - RuleBasedBot v2-2: posts small blind $5
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:401)
[collectBigBlind] - RuleBasedBot v1-1: posts big blind $10
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:74) [<init>] - 
***
HOLE CARDS ***
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79) [<init>] - 
Dealt
to RuleBasedBot v1-1 [Jd, 2c]
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79) [<init>] - 
Dealt
to RuleBasedBot v2-1 [10c, 2d]
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79) [<init>] - 
Dealt
to SearchBot (4 Part Distribution Showdown Node factory) v1-1 [As, Qs]
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79) [<init>] - 
Dealt
to SearchBot (4 Part Distribution Showdown Node factory) v1-2 [8h, 5s]
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79) [<init>] - 
Dealt
to RuleBasedBot v1-2 [3s, Qc]
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.PreFlopRound.java:79) [<init>] - 
Dealt
to RuleBasedBot v2-2 [9c, Jh]
13:43:00,199 INFO  
(org.cspoker.server.common.gamecontrol.PlayingTableState.java:222)
[fold] - RuleBasedBot v2-1: folds
13:43:00,199 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:215) [raise] -
SearchBot (4 Part Distribution Showdown Node factory) v1-1: raises with $42 to 
$52
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:215) [raise] -
SearchBot (4 Part Distribution Showdown Node factory) v1-2: raises with $168 to 
$220
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
RuleBasedBot v1-2 calls.
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
RuleBasedBot v2-2 calls.
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
RuleBasedBot v1-1 calls.
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:215) [raise] -
SearchBot (4 Part Distribution Showdown Node factory) v1-1: raises with $609 to 
$829
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
SearchBot (4 Part Distribution Showdown Node factory) v1-2 calls.
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
RuleBasedBot v1-2 calls.
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
RuleBasedBot v2-2 calls.
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
RuleBasedBot v1-1 calls.
13:43:00,249 INFO  
(org.cspoker.server.common.gamecontrol.rounds.FlopRound.java:45)
[<init>] - *** FLOP *** [8s, Qd, 9d]
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:111) [bet] -
RuleBasedBot v2-2 bets 394.
13:43:00,249 INFO  
(org.cspoker.server.common.gamecontrol.PlayingTableState.java:222)
[fold] - RuleBasedBot v1-1: folds
13:43:00,249 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
SearchBot (4 Part Distribution Showdown Node factory) v1-1 calls.
13:43:00,299 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:215) [raise] -
SearchBot (4 Part Distribution Showdown Node factory) v1-2: raises with $394 to 
$788
13:43:00,299 INFO  
(org.cspoker.server.common.gamecontrol.PlayingTableState.java:222)
[fold] - RuleBasedBot v1-2: folds
13:43:00,299 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:215) [raise] -
RuleBasedBot v2-2: raises with $951 to $1739
13:43:00,299 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
SearchBot (4 Part Distribution Showdown Node factory) v1-1 calls.
13:43:00,299 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:215) [raise] -
SearchBot (4 Part Distribution Showdown Node factory) v1-2: raises with $951 to 
$2690
13:43:00,299 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:215) [raise] -
RuleBasedBot v2-2: raises with $1414 to $4104
13:43:00,349 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
SearchBot (4 Part Distribution Showdown Node factory) v1-1 calls.
13:43:00,349 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
SearchBot (4 Part Distribution Showdown Node factory) v1-2 calls.
13:43:00,349 INFO  
(org.cspoker.server.common.gamecontrol.rounds.TurnRound.java:36)
[<init>] - *** TURN *** [8s, Qd, 9d, 9s]
13:43:00,349 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:281) [goAllIn] -
RuleBasedBot v2-2: raises to $19 and is all-in
13:43:00,349 INFO 
(org.cspoker.server.common.gamecontrol.rounds.BettingRound.java:156) [call] -
SearchBot (4 Part Distribution Showdown Node factory) v1-1 calls.
13:43:00,349 WARN  (org.cspoker.client.bots.bot.search.SearchBot.java:93) [run] 
-
Raise bounds: 19 to 610
13:43:00,349 ERROR (org.cspoker.client.bots.bot.search.SearchBot.java:94) [run] 
-
org.cspoker.common.api.shared.exception.IllegalActionException: #4: SearchBot 
(4 Part
Distribution Showdown Node factory) v1-2 ($629 in chips) can not raise with $19.
ERROR : the bet amount must be at least the amount of the previous bet/raise in 
the
current round
13:43:00,349 ERROR
(org.cspoker.common.util.threading.SingleThreadRequestExecutor.java:80) [run] -
java.lang.IllegalStateException: Action was not allowed.
java.lang.IllegalStateException: Action was not allowed.
    at org.cspoker.client.bots.bot.search.SearchBot$1.run(SearchBot.java:95)
    at
org.cspoker.common.util.threading.SingleThreadRequestExecutor$1.run(SingleThread
RequestExecutor.java:74)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
ScheduledThreadPoolExecutor.java:98)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedul
edThreadPoolExecutor.java:207)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.cspoker.common.api.shared.exception.IllegalActionException: #4:
SearchBot (4 Part Distribution Showdown Node factory) v1-2 ($629 in chips) can 
not
raise with $19. ERROR : the bet amount must be at least the amount of the 
previous
bet/raise in the current round
    at
org.cspoker.server.common.gamecontrol.rounds.BettingRound.raise(BettingRound.jav
a:181)
    at
org.cspoker.server.common.gamecontrol.PlayingTableState.raise(PlayingTableState.
java:203)
    at org.cspoker.server.common.gamecontrol.PokerTable.raise(PokerTable.java:323)
    at
org.cspoker.server.common.HoldemPlayerContextImpl.betOrRaise(HoldemPlayerContext
Impl.java:25)
    at
org.cspoker.common.api.lobby.holdemtable.holdemplayer.context.ForwardingRemoteHo
ldemPlayerContext.betOrRaise(ForwardingRemoteHoldemPlayerContext.java:35)
    at org.cspoker.client.bots.bot.search.action.RaiseAction.perform(RaiseAction.java:40)
    at
org.cspoker.client.bots.bot.search.node.BotActionNode.performbestAction(BotActio
nNode.java:66)
    at org.cspoker.client.bots.bot.search.SearchBot$1.run(SearchBot.java:78)
    ... 9 more

Original comment by guy...@gmail.com on 6 Mar 2009 at 3:14

GoogleCodeExporter commented 9 years ago
sorry, this bug is already fixed in trunk

Original comment by guy...@gmail.com on 8 Mar 2009 at 4:04