acpc_table_manager 2.2.1 → 2.2.2
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 +4 -4
- data/lib/acpc_table_manager/proxy.rb +9 -4
- data/lib/acpc_table_manager/version.rb +1 -1
- 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: 2e0dc3c1168638d75ff680ebca91f9140c4efb95
|
4
|
+
data.tar.gz: e07dae2c12b554c18c62a4cc30dfafa898c8695b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0734de38447bb8eaaa7533b71550acc45d48ac3256af866ce6e2ac5709659e4699607699d2c6fdecc442b4ade2b414fe5896cba175d91d3276077c1cbe53738
|
7
|
+
data.tar.gz: 28b835192d3356b9be4acc784d80e0d53073c93f3b4fddcbddc326199ce9b0504540712896bf9556922e20a5d963dbb6c7d8bd1ceeeaa3c578fa69e49e897d08
|
@@ -106,13 +106,13 @@ class Proxy
|
|
106
106
|
|
107
107
|
# Player action interface
|
108
108
|
# @see PlayerProxy#play!
|
109
|
-
def play!(action)
|
109
|
+
def play!(action, fast_forward = false)
|
110
110
|
log __method__, action: action
|
111
111
|
|
112
112
|
action = PokerAction.new(action) unless action.is_a?(PokerAction)
|
113
113
|
|
114
114
|
@player_proxy.play! action do |players_at_the_table|
|
115
|
-
update_database! players_at_the_table
|
115
|
+
update_database! players_at_the_table, fast_forward
|
116
116
|
|
117
117
|
yield players_at_the_table if block_given?
|
118
118
|
end
|
@@ -140,7 +140,8 @@ class Proxy
|
|
140
140
|
AcpcPokerTypes::PokerAction::FOLD
|
141
141
|
else
|
142
142
|
AcpcPokerTypes::PokerAction::CALL
|
143
|
-
end
|
143
|
+
end,
|
144
|
+
true
|
144
145
|
)
|
145
146
|
end
|
146
147
|
self
|
@@ -175,10 +176,14 @@ class Proxy
|
|
175
176
|
|
176
177
|
private
|
177
178
|
|
178
|
-
def update_database!(players_at_the_table)
|
179
|
+
def update_database!(players_at_the_table, fast_forward = false)
|
179
180
|
@match = Match.find(@match_id)
|
180
181
|
|
181
182
|
begin
|
183
|
+
if fast_forward
|
184
|
+
@match.last_slice_viewed = @match.slices.length - 1
|
185
|
+
end
|
186
|
+
|
182
187
|
MatchSlice.from_players_at_the_table!(
|
183
188
|
players_at_the_table,
|
184
189
|
match_ended?,
|