ofcp_scoring 0.0.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.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.autotest +8 -0
  4. data/.gitignore +2 -0
  5. data/.rspec +2 -0
  6. data/.travis.yml +5 -0
  7. data/Gemfile +4 -0
  8. data/Gemfile.lock +27 -0
  9. data/LICENSE.txt +22 -0
  10. data/README.md +59 -0
  11. data/Rakefile +1 -0
  12. data/lib/.DS_Store +0 -0
  13. data/lib/ofcp_scoring/chinese_poker_hand.rb +22 -0
  14. data/lib/ofcp_scoring/flush.rb +11 -0
  15. data/lib/ofcp_scoring/four_of_a_kind.rb +10 -0
  16. data/lib/ofcp_scoring/full_house.rb +4 -0
  17. data/lib/ofcp_scoring/hand_categorizer.rb +30 -0
  18. data/lib/ofcp_scoring/hand_evaluator.rb +50 -0
  19. data/lib/ofcp_scoring/hand_factory.rb +12 -0
  20. data/lib/ofcp_scoring/hand_organizer.rb +45 -0
  21. data/lib/ofcp_scoring/high_card.rb +6 -0
  22. data/lib/ofcp_scoring/organized_hand.rb +37 -0
  23. data/lib/ofcp_scoring/pair.rb +16 -0
  24. data/lib/ofcp_scoring/ranked_hand.rb +35 -0
  25. data/lib/ofcp_scoring/royal_flush.rb +3 -0
  26. data/lib/ofcp_scoring/royalties_calculator.rb +38 -0
  27. data/lib/ofcp_scoring/scoring_engine.rb +9 -0
  28. data/lib/ofcp_scoring/straight.rb +14 -0
  29. data/lib/ofcp_scoring/straight_flush.rb +2 -0
  30. data/lib/ofcp_scoring/three_of_a_kind.rb +10 -0
  31. data/lib/ofcp_scoring/two_pair.rb +22 -0
  32. data/lib/ofcp_scoring/version.rb +3 -0
  33. data/lib/ofcp_scoring.rb +9 -0
  34. data/ofcp_scoring-0.0.1.gem +0 -0
  35. data/ofcp_scoring.gemspec +24 -0
  36. data/spec/acceptance_spec.rb +32 -0
  37. data/spec/chinese_poker_hand_categorizer_spec.rb +117 -0
  38. data/spec/chinese_poker_hand_evaluator_spec.rb +69 -0
  39. data/spec/chinese_poker_hand_organizer_spec.rb +19 -0
  40. data/spec/chinese_poker_hand_spec.rb +23 -0
  41. data/spec/chinese_poker_scoring_engine_spec.rb +23 -0
  42. data/spec/hand_factory_spec.rb +22 -0
  43. data/spec/organized_hand_spec.rb +4 -0
  44. data/spec/ranked_hand_spec.rb +159 -0
  45. data/spec/royalties_calculator_spec.rb +103 -0
  46. data/spec/spec_helper.rb +28 -0
  47. metadata +143 -0
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ofcp_scoring
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Clayton Lengel-Zigich
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Open Face Chinese Poker Scoring
56
+ email:
57
+ - clayton@claytonlz.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .DS_Store
63
+ - .autotest
64
+ - .gitignore
65
+ - .rspec
66
+ - .travis.yml
67
+ - Gemfile
68
+ - Gemfile.lock
69
+ - LICENSE.txt
70
+ - README.md
71
+ - Rakefile
72
+ - lib/.DS_Store
73
+ - lib/ofcp_scoring.rb
74
+ - lib/ofcp_scoring/chinese_poker_hand.rb
75
+ - lib/ofcp_scoring/flush.rb
76
+ - lib/ofcp_scoring/four_of_a_kind.rb
77
+ - lib/ofcp_scoring/full_house.rb
78
+ - lib/ofcp_scoring/hand_categorizer.rb
79
+ - lib/ofcp_scoring/hand_evaluator.rb
80
+ - lib/ofcp_scoring/hand_factory.rb
81
+ - lib/ofcp_scoring/hand_organizer.rb
82
+ - lib/ofcp_scoring/high_card.rb
83
+ - lib/ofcp_scoring/organized_hand.rb
84
+ - lib/ofcp_scoring/pair.rb
85
+ - lib/ofcp_scoring/ranked_hand.rb
86
+ - lib/ofcp_scoring/royal_flush.rb
87
+ - lib/ofcp_scoring/royalties_calculator.rb
88
+ - lib/ofcp_scoring/scoring_engine.rb
89
+ - lib/ofcp_scoring/straight.rb
90
+ - lib/ofcp_scoring/straight_flush.rb
91
+ - lib/ofcp_scoring/three_of_a_kind.rb
92
+ - lib/ofcp_scoring/two_pair.rb
93
+ - lib/ofcp_scoring/version.rb
94
+ - ofcp_scoring-0.0.1.gem
95
+ - ofcp_scoring.gemspec
96
+ - spec/acceptance_spec.rb
97
+ - spec/chinese_poker_hand_categorizer_spec.rb
98
+ - spec/chinese_poker_hand_evaluator_spec.rb
99
+ - spec/chinese_poker_hand_organizer_spec.rb
100
+ - spec/chinese_poker_hand_spec.rb
101
+ - spec/chinese_poker_scoring_engine_spec.rb
102
+ - spec/hand_factory_spec.rb
103
+ - spec/organized_hand_spec.rb
104
+ - spec/ranked_hand_spec.rb
105
+ - spec/royalties_calculator_spec.rb
106
+ - spec/spec_helper.rb
107
+ homepage: http://github.com/clayton/ofcp_scoring
108
+ licenses:
109
+ - MIT
110
+ metadata: {}
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubyforge_project:
127
+ rubygems_version: 2.0.0
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: A library to categorize, rank and score open face chinese poker hands with
131
+ royalties.
132
+ test_files:
133
+ - spec/acceptance_spec.rb
134
+ - spec/chinese_poker_hand_categorizer_spec.rb
135
+ - spec/chinese_poker_hand_evaluator_spec.rb
136
+ - spec/chinese_poker_hand_organizer_spec.rb
137
+ - spec/chinese_poker_hand_spec.rb
138
+ - spec/chinese_poker_scoring_engine_spec.rb
139
+ - spec/hand_factory_spec.rb
140
+ - spec/organized_hand_spec.rb
141
+ - spec/ranked_hand_spec.rb
142
+ - spec/royalties_calculator_spec.rb
143
+ - spec/spec_helper.rb