acpc_poker_player_proxy 1.2.0 → 1.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51b1aaf8476686a3ef4c47221d38cdb40f1a4f1c
|
4
|
+
data.tar.gz: 231afe32b2a403623c00e0ad3ff12bcfa4c6baf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8110d6372db3a700734f3a3cb79f17a820aa0ab25e00b2a3dec5d26231ee12bb875a304bb8c11e73ffb448afd1cdf66068cf31e489f5cbd2c494482236f0ace
|
7
|
+
data.tar.gz: cc141ce60757875b433ed9dba60129e551c4eb31f185dc71ac2ebc8ba2f2ea5e5ebe57970769ac12edee466ccf5607bb5140fd282949ec40602ee40bd9c3f1b9
|
@@ -64,7 +64,7 @@ class PlayerProxy < DelegateClass(AcpcPokerTypes::PlayersAtTheTable)
|
|
64
64
|
begin
|
65
65
|
@basic_proxy.send_action action
|
66
66
|
rescue AcpcPokerBasicProxy::DealerStream::UnableToWriteToDealer => e
|
67
|
-
raise MatchEnded.
|
67
|
+
raise MatchEnded.with_context(
|
68
68
|
"Cannot take action #{action} because the match has ended!",
|
69
69
|
e
|
70
70
|
)
|
data/spec/player_proxy_spec.rb
CHANGED
@@ -25,7 +25,7 @@ describe PlayerProxy do
|
|
25
25
|
# Some interesting three player hands occur after 120
|
26
26
|
# Careful though, even 10 hands takes about 7 seconds,
|
27
27
|
# and it scales more than linearly
|
28
|
-
num_hands =
|
28
|
+
num_hands = 10
|
29
29
|
each_match(num_hands) do |match|
|
30
30
|
@match = match
|
31
31
|
@match.for_every_seat! do |users_seat|
|