acpc_poker_player_proxy 1.6.6 → 1.6.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fafb026573537a012b90db1b3a64eb2220212179
|
4
|
+
data.tar.gz: 73d877faa717b1d21cfc555a4c27b8b4adacc528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d33bb5dbad36873fb0565065c314c18aae5446502cb1b26ab44beba32b342dd26b7f25c092da7da38f84677350a0b514a6e8a06ecae9658249608995f428c3b
|
7
|
+
data.tar.gz: '08ac659e94aa51ce71bb5b52663d5fbedb1d0ac94ba86afb893f648aaf513a8cc3a43aeab15452ce494728ecf2cdf12801e1efc5c9d5035b8c95d1c79e2b2024'
|
@@ -57,15 +57,17 @@ class PlayerProxy < DelegateClass(AcpcPokerTypes::PlayersAtTheTable)
|
|
57
57
|
# Player action interface
|
58
58
|
# @param [PokerAction] action The action to take.
|
59
59
|
def play!(action)
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
60
|
+
if users_turn_to_act?
|
61
|
+
begin
|
62
|
+
@basic_proxy.send_action action
|
63
|
+
rescue AcpcPokerBasicProxy::DealerStream::UnableToWriteToDealer => e
|
64
|
+
raise MatchEnded.with_context(
|
65
|
+
"Cannot take action #{action} because the match has ended!",
|
66
|
+
e
|
67
|
+
)
|
68
|
+
end
|
69
|
+
update_match_state! { yield self if block_given? }
|
67
70
|
end
|
68
|
-
update_match_state! { yield self if block_given? }
|
69
71
|
end
|
70
72
|
|
71
73
|
def match_ended?(max_num_hands = nil)
|
@@ -76,7 +78,7 @@ class PlayerProxy < DelegateClass(AcpcPokerTypes::PlayersAtTheTable)
|
|
76
78
|
end
|
77
79
|
|
78
80
|
def next_hand!
|
79
|
-
if @must_send_ready
|
81
|
+
if @must_send_ready && hand_ended?
|
80
82
|
begin
|
81
83
|
@basic_proxy.send_ready
|
82
84
|
rescue AcpcPokerBasicProxy::DealerStream::UnableToWriteToDealer => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acpc_poker_player_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Morrill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acpc_poker_basic_proxy
|