acpc_poker_types 7.1.3 → 7.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acpc_poker_types/players_at_the_table.rb +0 -2
- data/lib/acpc_poker_types/version.rb +1 -1
- data/spec/match_state_spec.rb +11 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab072498a35c8b53f0602dd0a49453b0f33ae6cd
|
4
|
+
data.tar.gz: 3cfc75533ff01304b4198c521e50deb79139007a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0366232bc2cab9bf7b26e5519f39163aee7ef1d81ef82b9f8f7ef0306a01e1b1aa2ccbe58a27737a2f6b4bcef762391430d12fba962c09c38e5bd293bfc6eef0
|
7
|
+
data.tar.gz: 1579a92a852dff1a767e8081838e6ff9814a9ea37dae4eefaa7ef3d175cf67dc94de6a5ce5680bc056ebaf53048210b3de0b84065a39be9653615eef9712fdfa
|
@@ -144,8 +144,6 @@ class PlayersAtTheTable
|
|
144
144
|
private
|
145
145
|
|
146
146
|
def update_players!
|
147
|
-
return self if @match_state.first_state_of_first_round?
|
148
|
-
|
149
147
|
@players.each do |plyr|
|
150
148
|
plyr.hand_player = @match_state.players(@game_def)[position_relative_to_dealer(plyr)]
|
151
149
|
end
|
data/spec/match_state_spec.rb
CHANGED
@@ -878,16 +878,25 @@ describe MatchState do
|
|
878
878
|
end
|
879
879
|
end
|
880
880
|
end
|
881
|
-
describe '
|
881
|
+
describe '#legal_actions' do
|
882
882
|
it 'should work properly when facing a wager' do
|
883
883
|
game_definition = GameDefinition.parse_file(AcpcDealer::GAME_DEFINITION_FILE_PATHS[2][:limit])
|
884
884
|
MatchState.parse("MATCHSTATE:0:3:crc/rrrr:Qh9s|/KdQc7c").legal_actions(
|
885
885
|
game_definition
|
886
886
|
).must_equal [
|
887
|
-
PokerAction.new(PokerAction::CALL, cost: game_definition.min_wagers[
|
887
|
+
PokerAction.new(PokerAction::CALL, cost: game_definition.min_wagers[1]),
|
888
888
|
PokerAction.new(PokerAction::FOLD)
|
889
889
|
]
|
890
890
|
end
|
891
|
+
it 'should work properly when a new round begins' do
|
892
|
+
game_definition = GameDefinition.parse_file(AcpcDealer::GAME_DEFINITION_FILE_PATHS[2][:limit])
|
893
|
+
MatchState.parse("MATCHSTATE:0:1:rrc/:Qh3c|/Js4c9d").legal_actions(
|
894
|
+
game_definition
|
895
|
+
).must_equal [
|
896
|
+
PokerAction.new(PokerAction::CHECK, cost: 0),
|
897
|
+
PokerAction.new(PokerAction::BET, cost: game_definition.min_wagers[1])
|
898
|
+
]
|
899
|
+
end
|
891
900
|
end
|
892
901
|
end
|
893
902
|
|