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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2de5af0f7acb750039342b5048adcca08882bbd9
4
- data.tar.gz: 6cfa175c0bd599c7f367196df73e682fe90ccf03
3
+ metadata.gz: ab072498a35c8b53f0602dd0a49453b0f33ae6cd
4
+ data.tar.gz: 3cfc75533ff01304b4198c521e50deb79139007a
5
5
  SHA512:
6
- metadata.gz: d6c3c8f2d7f2929552f9c48f189bb5701bd61bccc7648c7aa963d27351f99f2372998d6dc8e07f997c08e7f47f35c927ffeadef0b65cb1ff9a58485b6c9dce42
7
- data.tar.gz: 697b9c6ab18ec72a23cca3f88e1cfdaeb2e2f6bd2668bd32aae6446dbefafcd3f457079eca131f67a17307cad7e7a7e6febaf04280f6ce39e7b4e3e6bca126fa
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
@@ -1,3 +1,3 @@
1
1
  module AcpcPokerTypes
2
- VERSION = '7.1.3'
2
+ VERSION = '7.1.4'
3
3
  end
@@ -878,16 +878,25 @@ describe MatchState do
878
878
  end
879
879
  end
880
880
  end
881
- describe 'players legal actions' do
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[2]),
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_poker_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.3
4
+ version: 7.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill