acpc_poker_types 7.1.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ca00e6a41dab80ef2f33c8f10c3ffaff6e2c0e1
4
- data.tar.gz: c09333d7db8f948d5e328357a59536e70e44a68b
3
+ metadata.gz: 20982f70477d43521167958bfe44cc988401afa2
4
+ data.tar.gz: 52b05645a50893837e35e824f5174d3ad4af95b1
5
5
  SHA512:
6
- metadata.gz: cc1c019653c1e5671db05f44a355feb8a465052c83d2b8bd5b1930a5ece33d42b25128840de95ad717383136fd36a2a035e83670d5d3edd2e3661d729ae037ee
7
- data.tar.gz: 412ac972e9c336b2dd5e6ff3b674372c799ea9f046ded2bb6f455bae1a173cf0f9a6d536feb4cbe7cd1205f311e28b14a1c062bc26785aa75c0cf51aa8961bc3
6
+ metadata.gz: 3025113f3a271e1902c1f66305398d4a811facef398bdd536f3c9de058cd1444dca4997f1f8bb022510b1b73f784e8b677f4ee6ae03acfe63ebcb511e653edd7
7
+ data.tar.gz: babd57cea83388149f40e369aa1d941a3c7e44f4e0f711401243c4dc5819a9b07e1d5abf88a263124dbcc6bf2f4a2453d27038a1f6efe817ef4aeca997eecdaa
@@ -106,7 +106,7 @@ class PlayersAtTheTable
106
106
  def legal_actions
107
107
  return [] unless @match_state
108
108
 
109
- @match_state.players(@game_def)[users_position_relative_to_dealer].legal_actions
109
+ @match_state.legal_actions(@game_def)
110
110
  end
111
111
 
112
112
  # @return [String] player acting sequence as a string.
@@ -77,14 +77,6 @@ class PokerAction < DelegateClass(String)
77
77
  super to_s
78
78
  end
79
79
 
80
- # def ==(other_action)
81
- # 0 == (self <=> other_action)
82
- # end
83
-
84
- # def <=>(other_action)
85
- # to_s <=> other_action.to_s
86
- # end
87
-
88
80
  # @return [String] String representation of this action.
89
81
  # @param pot_gained_chips [Boolean] Whether or not the pot had gained chips before this action. Defaults to true.
90
82
  # @param player_sees_wager [Boolean] Whether or not the player is reacting to a wager.
@@ -102,7 +94,6 @@ class PokerAction < DelegateClass(String)
102
94
  end
103
95
 
104
96
  alias_method :to_acpc, :to_s
105
- alias_method :to_str, :to_s
106
97
 
107
98
  # @return [Boolean] +true+ if this action has a modifier, +false+ otherwise.
108
99
  def has_modifier?
@@ -1,3 +1,3 @@
1
1
  module AcpcPokerTypes
2
- VERSION = '7.1.0'
2
+ VERSION = '7.1.1'
3
3
  end
@@ -17,7 +17,7 @@ describe PlayersAtTheTable do
17
17
  # Careful though, even 10 hands takes about three seconds,
18
18
  # and it scales slightly less than linearly. 120 takes
19
19
  # about 30 seconds.
20
- num_hands = 120
20
+ num_hands = 10
21
21
  MatchLog.all.each do |log_description|
22
22
  @match = DealerData::PokerMatchData.parse_files(
23
23
  log_description.actions_file_path,
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.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill