poker_odds 0.1.2 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9b276397f0241270e9e70261add2fae5c6a018c0d132ffc65a6ad7027f8a91f
4
- data.tar.gz: 3d3cdf4f18c3c42c3f0d1792dc94f7fca4c83f9040ad02bd24a2f0834b11f523
3
+ metadata.gz: 0f051198b6ad06d450eed6de84d7144e29f8799613a4b3afa9e51efcb361a79e
4
+ data.tar.gz: 66e2a399060eba110e929582245c50ae6e654bb8c7efa8484e02a22cb71e5fe1
5
5
  SHA512:
6
- metadata.gz: 5ed48a3fbb3116018cb60e6865969f20fff70e346bf28d73e464f1f2ef86c781bcd23a6ef8f4d0d4b1e0b9eeed0362b75c1d429b2691dcd1ee71051eac5ac857
7
- data.tar.gz: 808b5bb6a3f9bf08d261b334e254add15e3b33f19cca02d34534bbaaae41822aa2df9006b9ce90e42d308e9276950eabb09b33b2487f555c9b430fa90af16ff9
6
+ metadata.gz: 625b416f0687fcd883a399aeab7e6130453eb935450174ffef7aeb284b7a1e9742f7bdde89a58b717d635b8404176d60f04f619740dff4f028822ffaf641acf3
7
+ data.tar.gz: 107664dcfa0b07d0da2c608bf56e740b5f59ab12c3ad75ebf5c25580f0780fe28c72ba2b8a14f0ae13d2475e31b44a8b26d8d08ab1e91abcf1b2d250721b6a16
@@ -80,16 +80,14 @@ module PokerOdds
80
80
 
81
81
  s = z.size.to_f
82
82
 
83
- binding.pry
84
83
  hands.each_with_object({}) do |hand, h|
85
- binding.pry
86
84
  win_hands = z.select { |a,b| b[:win_hands]&.include?(hand) }
87
85
  win_rate = win_hands.size / s
88
86
  h[hand] = {}
89
87
  h[hand][:win_rate] = win_rate
90
88
  h[hand][:lose_rate] = z.count { |a,b| b[:lose_hands]&.include?(hand) } / s
91
89
  h[hand][:tie_rate] = z.count { |a,b| b[:tie_hands]&.include?(hand) } / s
92
- h[hand][:outs] = win_hands.keys if win_rate > 0.5
90
+ h[hand][:outs] = win_hands.keys if win_rate < 0.5
93
91
  end
94
92
  end
95
93
 
@@ -1,3 +1,3 @@
1
1
  module PokerOdds
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poker_odds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyohah