poker_trump 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 06ed088ed9a7bb074aa954453d7ee7b43519264a30a4ff15a9e70b6816201ef0
4
+ data.tar.gz: 505ba7d3c0037c85d56dfd3f08cdf2adf74350a7b54b94eb61f19f6966df2678
5
+ SHA512:
6
+ metadata.gz: f9c099763cc15cd53ec7903bb0219f2f06645ba46319dc663142a5ecc621077989f81b0e0fcbdbf0a702bb44bf5d3d6884cc11a2090be6e59e795eb9623f7c84
7
+ data.tar.gz: 1d8a03f363edec7520f973705dcddb7aa4b3c485b47787c485a536a104ccd5dd7845ed7e1ba2a2eb0490180e2e5232bb7aebdd475f8736b4b0c0031a15f69890
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at kyohah@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in poker_trump.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rspec', '~> 3.0'
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 kyohah
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # PokerTrump
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/poker_trump`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ ポーカーの役判定
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'poker_trump'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install poker_trump
22
+
23
+ ## Usage
24
+
25
+ ```
26
+ PokerTrump::Cards.from_string('Kd Kc Ks 3h 3d') > PokerTrump::Cards.from_string('Kd Kc Ks 2h 2h')
27
+ # => true
28
+
29
+ ['Ad Kd Qd Jd Td', 'Ad Kc Qs Jh Th', 'Ad Kc Ks Kh Kc', 'Qd Kc Ks Kh Kd', 'Ad Kc Ks 4h 3d', '2d 3c 4s 5h 6d'].map { |s| PokerTrump::Cards.from_string(s) }.sort.reverse.map(&:to_s)
30
+ # => ["Ad Kd Qd Jd Td", "Ad Kc Ks Kh Kc", "Qd Kc Ks Kh Kd", "Ad Kc Qs Jh Th", "2d 3c 4s 5h 6d", "Ad Kc Ks 4h 3d"]
31
+ ```
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/poker_trump. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/poker_trump/blob/master/CODE_OF_CONDUCT.md).
42
+
43
+ ## License
44
+
45
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
46
+
47
+ ## Code of Conduct
48
+
49
+ Everyone interacting in the PokerTrump project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/poker_trump/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'poker_trump'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ require 'pry'
12
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,45 @@
1
+ module PokerTrump
2
+ class Card
3
+ include Virtus.model
4
+
5
+ RANKS = %w[A 2 3 4 5 6 7 8 9 T J Q K].freeze
6
+ SUITS = %i[s h d c].freeze
7
+
8
+ RANK_VALUE = {
9
+ '2' => 2,
10
+ '3' => 3,
11
+ '4' => 4,
12
+ '5' => 5,
13
+ '6' => 6,
14
+ '7' => 7,
15
+ '8' => 8,
16
+ '9' => 9,
17
+ 'T' => 10,
18
+ 'J' => 11,
19
+ 'Q' => 12,
20
+ 'K' => 13,
21
+ 'A' => 14
22
+ }.freeze
23
+
24
+ attribute :rank, String
25
+ attribute :suit, Symbol
26
+
27
+ class << self
28
+ def from_string(string)
29
+ new(rank: string[0], suit: string[1])
30
+ end
31
+ end
32
+
33
+ def rank_value
34
+ RANK_VALUE[rank]
35
+ end
36
+
37
+ def to_s
38
+ "#{rank}#{suit}"
39
+ end
40
+
41
+ def ==(other_card)
42
+ rank == other_card.rank && suit == other_card.suit
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,216 @@
1
+ module PokerTrump
2
+ class Cards < Array
3
+ include Comparable
4
+ DeleteError = Class.new(StandardError)
5
+
6
+ class << self
7
+ def new_deck
8
+ cards = PokerTrump::Card::RANKS.product(PokerTrump::Card::SUITS).map do |rank, suit|
9
+ PokerTrump::Card.new(rank: rank, suit: suit)
10
+ end
11
+
12
+ new(cards)
13
+ end
14
+
15
+ def from_string(string)
16
+ cards = string.split.map { |s| PokerTrump::Card.from_string(s) }
17
+
18
+ new(cards)
19
+ end
20
+
21
+ def from_json(json)
22
+ cards = JSON.parse(json).map { |c| PokerTrump::Card.new(rank: c['rank'], suit: c['suit'].to_sym) }
23
+
24
+ new(cards)
25
+ end
26
+ end
27
+
28
+ def delete_card!(card)
29
+ i = index(card)
30
+ raise DeleteError if i.nil?
31
+
32
+ delete_at(i)
33
+ self
34
+ end
35
+
36
+ def delete_card(card)
37
+ i = index(card)
38
+ raise DeleteError if i.nil?
39
+
40
+ clone_cards = clone
41
+ clone_cards.delete_at(i)
42
+
43
+ clone_cards
44
+ end
45
+
46
+ def delete_cards!(cards)
47
+ cards.each { |t| delete_card!(t) }
48
+ self
49
+ end
50
+
51
+ def delete_cards(cards)
52
+ clone_cards = clone
53
+ cards.each { |t| clone_cards.delete_card!(t) }
54
+ clone_cards
55
+ end
56
+
57
+ def add_card(card)
58
+ clone_cards = clone
59
+ clone_cards.push(card)
60
+ end
61
+
62
+ def add_card!(card)
63
+ push(card)
64
+ end
65
+
66
+ def add_cards(cards)
67
+ clone_cards = clone
68
+
69
+ cards.each { |card| clone_cards.add_card!(card) }
70
+ clone_cards
71
+ end
72
+
73
+ def add_cards!(cards)
74
+ cards.each { |card| add_card!(card) }
75
+ self
76
+ end
77
+
78
+ def sort_by_suit
79
+ self.class.new(sort_by { |card| [card.suit, card.rank_value] }.reverse)
80
+ end
81
+
82
+ def sort_by_rank
83
+ @sort_by_rank ||= self.class.new(sort_by { |card| [card.rank_value, card.suit] }.reverse)
84
+ end
85
+
86
+ def to_s
87
+ map(&:to_s).join(' ')
88
+ end
89
+
90
+ def group_by_suit
91
+ @group_by_suit ||= group_by(&:suit).each_with_object({}) { |(k, v), h| h[k] = self.class.new(v) }
92
+ end
93
+
94
+ def royal_flush_rate
95
+ [10, 0, 0, 0, 0, 0] if /A(.) K\1 Q\1 J\1 T\1/.match?(sort_by_suit.to_s)
96
+ end
97
+
98
+ def straight_flush_rate
99
+ group_by_suit.each do |_k, v|
100
+ next if v.size < 5
101
+
102
+ a = v.straight_rate
103
+ return [9, a[1], a[2], a[3], a[4], a[5]] if a
104
+ end
105
+ nil
106
+ end
107
+
108
+ def four_of_a_kind_rate
109
+ a = sort_by_rank.to_s.match(/(.). \1. \1. \1./)
110
+
111
+ if a
112
+ b = (a.pre_match + a.post_match).match(/(\S)/).to_s
113
+
114
+ [8, PokerTrump::Card::RANK_VALUE[a[1]], PokerTrump::Card::RANK_VALUE[b.to_s], 0, 0, 0]
115
+ end
116
+ end
117
+
118
+ def full_house_rate
119
+ case sort_by_rank.to_s
120
+ when /(.). \1. \1. (.*)(.). \3./
121
+ [7, PokerTrump::Card::RANK_VALUE[Regexp.last_match(1)], PokerTrump::Card::RANK_VALUE[Regexp.last_match(3)], 0,
122
+ 0, 0]
123
+ when /((.). \2.) (.*)((.). \5. \5.)/
124
+ [7, PokerTrump::Card::RANK_VALUE[Regexp.last_match(5)], PokerTrump::Card::RANK_VALUE[Regexp.last_match(2)], 0,
125
+ 0, 0]
126
+ end
127
+ end
128
+
129
+ def flush_rate
130
+ group_by_suit.each do |_k, v|
131
+ next if v.size < 5
132
+
133
+ z = v.sort_by_rank
134
+ return [6, z[0].rank_value, z[1].rank_value, z[2].rank_value, z[3].rank_value, z[4].rank_value]
135
+ end
136
+
137
+ nil
138
+ end
139
+
140
+ def straight_rate
141
+ a = sort_by_rank.to_s.match(/(?<_A>A.+K.+Q.+J.+T)|(?<_K>K.+Q.+J.+T.+9)|(?<_Q>Q.+J.+T.+9.+8)|(?<_J>J.+T.+9.+8.+7)|(?<_T>T.+9.+8.+7.+6)|(?<_9>9.+8.+7.+6.+5)|(?<_8>8.+7.+6.+5.+4)|(?<_7>7.+6.+5.+4.+3)|(?<_6>6.+5.+4.+3.+2)|(?<_5>A.+5.+4.+3.+2)/)
142
+
143
+ if a
144
+ case
145
+ when a.send(:[], :_A)
146
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('A', 'K', 'Q', 'J', 'T')]
147
+ when a.send(:[], :_K)
148
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('K', 'Q', 'J', 'T', '9')]
149
+ when a.send(:[], :_Q)
150
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('Q', 'J', 'T', '9', '8')]
151
+ when a.send(:[], :_J)
152
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('J', 'T', '9', '8', '7')]
153
+ when a.send(:[], :_T)
154
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('T', '9', '8', '7', '6')]
155
+ when a.send(:[], :_9)
156
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('9', '8', '7', '6', '5')]
157
+ when a.send(:[], :_8)
158
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('8', '7', '6', '5', '4')]
159
+ when a.send(:[], :_7)
160
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('7', '6', '5', '4', '3')]
161
+ when a.send(:[], :_6)
162
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('6', '5', '4', '3', '2')]
163
+ when a.send(:[], :_5)
164
+ [5, *PokerTrump::Card::RANK_VALUE.values_at('5', '4', '3', '2', 'A')]
165
+ end
166
+ end
167
+ end
168
+
169
+ def three_of_a_kind_rate
170
+ md = sort_by_rank.to_s.match(/(.). \1. \1./)
171
+
172
+ if md
173
+ arranged_hand = (md.pre_match + md.post_match).strip.squeeze(' ')
174
+
175
+ [4, PokerTrump::Card::RANK_VALUE[md[1]], PokerTrump::Card::RANK_VALUE[arranged_hand[0]],
176
+ PokerTrump::Card::RANK_VALUE[arranged_hand[3]], 0, 0]
177
+ end
178
+ end
179
+
180
+ def two_pair_rate
181
+ md = sort_by_rank.to_s.match(/(.). \1.(.*?) (.). \3./)
182
+
183
+ if md
184
+ arranged_hand = (md.pre_match + ' ' + md[2] + ' ' + md.post_match).strip.squeeze(' ')
185
+ [3, PokerTrump::Card::RANK_VALUE[md[1]], PokerTrump::Card::RANK_VALUE[md[3]],
186
+ PokerTrump::Card::RANK_VALUE[arranged_hand[0]], 0, 0]
187
+ end
188
+ end
189
+
190
+ def one_pair_rate
191
+ md = sort_by_rank.to_s.match(/(.). \1./)
192
+
193
+ if md
194
+ arranged_hand = (md.pre_match + ' ' + md.post_match).strip.squeeze(' ')
195
+
196
+ [2, PokerTrump::Card::RANK_VALUE[md[1]], PokerTrump::Card::RANK_VALUE[arranged_hand[0]],
197
+ PokerTrump::Card::RANK_VALUE[arranged_hand[3]], PokerTrump::Card::RANK_VALUE[arranged_hand[6]], 0]
198
+ end
199
+ end
200
+
201
+ def high_card_rate
202
+ arranged_hand = sort_by_rank.to_s
203
+
204
+ [1, PokerTrump::Card::RANK_VALUE[arranged_hand[0]], PokerTrump::Card::RANK_VALUE[arranged_hand[3]],
205
+ PokerTrump::Card::RANK_VALUE[arranged_hand[6]], PokerTrump::Card::RANK_VALUE[arranged_hand[9]], PokerTrump::Card::RANK_VALUE[arranged_hand[12]]]
206
+ end
207
+
208
+ def score
209
+ @score ||= royal_flush_rate || straight_flush_rate || four_of_a_kind_rate || full_house_rate || flush_rate || straight_rate || three_of_a_kind_rate || two_pair_rate || one_pair_rate || high_card_rate
210
+ end
211
+
212
+ def <=>(other)
213
+ score <=> other.score
214
+ end
215
+ end
216
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PokerTrump
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'virtus'
4
+ require_relative 'poker_trump/version'
5
+ require_relative 'poker_trump/card'
6
+ require_relative 'poker_trump/cards'
7
+
8
+ module PokerTrump
9
+ class Error < StandardError; end
10
+ # Your code goes here...
11
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: poker_trump
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - kyohah
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pry
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: virtus
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Write a longer description or delete this line.
42
+ email:
43
+ - kyohah@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".rspec"
49
+ - CODE_OF_CONDUCT.md
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - bin/console
55
+ - bin/setup
56
+ - lib/poker_trump.rb
57
+ - lib/poker_trump/card.rb
58
+ - lib/poker_trump/cards.rb
59
+ - lib/poker_trump/version.rb
60
+ homepage: https://github.com/kyohah/poker_trump
61
+ licenses:
62
+ - MIT
63
+ metadata:
64
+ homepage_uri: https://github.com/kyohah/poker_trump
65
+ source_code_uri: https://github.com/kyohah/poker_trump
66
+ changelog_uri: https://github.com/kyohah/poker_trump
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 2.6.0
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubygems_version: 3.2.32
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: Write a short summary, because RubyGems requires one.
86
+ test_files: []