ofcp_scoring 0.0.2 → 0.0.3
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/.gitignore +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/ofcp_scoring/hand_organizer.rb +1 -1
- data/lib/ofcp_scoring/organized_hand.rb +4 -0
- data/lib/ofcp_scoring/straight_flush.rb +1 -0
- data/lib/ofcp_scoring/version.rb +1 -1
- data/spec/chinese_poker_hand_organizer_spec.rb +1 -0
- metadata +2 -5
- data/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/ofcp_scoring-0.0.1.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7f373aba74942b3828e90a36cd467e752f816e8
|
|
4
|
+
data.tar.gz: 92dabf776a940fe30c088b859746aceea706e5d1
|
|
5
5
|
!binary "U0hBNTEy":
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e31b00a5149351a123e06856fff9ba478c070f2d6fc5f696d78c5fb8fc790a6852ba44c42650adee0933ef73b868bbfc8c48fc0e12dd5d27178d4f2195d5bdab
|
|
7
|
+
data.tar.gz: a0df5bac673ab6434016d5a92581165e740fcc80f83f9061c2c65b05bd64deeb2727419225d3b70c1eb88c5c70a9cc0669793df6cadd3d00b0d058e250a797cd
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -35,7 +35,7 @@ With Royalties you receive the following points for Back hands:
|
|
|
35
35
|
* 10 for StraightFlush
|
|
36
36
|
* 8 for Quads
|
|
37
37
|
* 6 for a Full House
|
|
38
|
-
* 4 for a
|
|
38
|
+
* 4 for a Flush
|
|
39
39
|
* 2 for a Straight
|
|
40
40
|
|
|
41
41
|
You receive the following points for Middle hands:
|
|
@@ -43,7 +43,7 @@ You receive the following points for Middle hands:
|
|
|
43
43
|
* 20 for StraightFlush
|
|
44
44
|
* 16 for Quads
|
|
45
45
|
* 2 for a Full House
|
|
46
|
-
* 8 for a
|
|
46
|
+
* 8 for a Flush
|
|
47
47
|
* 4 for a Straight
|
|
48
48
|
|
|
49
49
|
You receive the following points for Front hands (the 3 card hand):
|
|
@@ -28,7 +28,7 @@ class OfcpScoring::HandOrganizer
|
|
|
28
28
|
|
|
29
29
|
private
|
|
30
30
|
def build_organized_hand(ranks, suits, sorted)
|
|
31
|
-
params = {:ranks => sorted}
|
|
31
|
+
params = {:ranks => sorted, :suits => suits}
|
|
32
32
|
|
|
33
33
|
params.merge!({:two_cards_match => true}) if ranks.values.include?(2)
|
|
34
34
|
params.merge!({:two_different_cards_match => true}) if ranks.find_all{|k,v| v == 2}.size > 1
|
data/lib/ofcp_scoring/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ofcp_scoring
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Clayton Lengel-Zigich
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-08-
|
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -59,7 +59,6 @@ executables: []
|
|
|
59
59
|
extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
|
-
- .DS_Store
|
|
63
62
|
- .autotest
|
|
64
63
|
- .gitignore
|
|
65
64
|
- .rspec
|
|
@@ -69,7 +68,6 @@ files:
|
|
|
69
68
|
- LICENSE.txt
|
|
70
69
|
- README.md
|
|
71
70
|
- Rakefile
|
|
72
|
-
- lib/.DS_Store
|
|
73
71
|
- lib/ofcp_scoring.rb
|
|
74
72
|
- lib/ofcp_scoring/chinese_poker_hand.rb
|
|
75
73
|
- lib/ofcp_scoring/flush.rb
|
|
@@ -91,7 +89,6 @@ files:
|
|
|
91
89
|
- lib/ofcp_scoring/three_of_a_kind.rb
|
|
92
90
|
- lib/ofcp_scoring/two_pair.rb
|
|
93
91
|
- lib/ofcp_scoring/version.rb
|
|
94
|
-
- ofcp_scoring-0.0.1.gem
|
|
95
92
|
- ofcp_scoring.gemspec
|
|
96
93
|
- spec/acceptance_spec.rb
|
|
97
94
|
- spec/chinese_poker_hand_categorizer_spec.rb
|
data/.DS_Store
DELETED
|
Binary file
|
data/lib/.DS_Store
DELETED
|
Binary file
|
data/ofcp_scoring-0.0.1.gem
DELETED
|
Binary file
|