pkrbot 1.0.19__cp311-cp311-win_amd64.whl

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.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025
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 all
13
+ 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 THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.1
2
+ Name: pkrbot
3
+ Version: 1.0.19
4
+ Summary: Fast poker hand evaluation library with eval7-compatible API
5
+ Author: Bobby Costin
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/bossbobster/pkrbot
8
+ Keywords: poker,hand evaluation,eval7,cards,game,pokerbots
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Cython
20
+ Classifier: Topic :: Games/Entertainment
21
+ Requires-Python: >=3.8
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+
25
+ # pkrbot
26
+
27
+ Fast poker hand evaluator. Drop-in replacement for eval7, 2-3x faster.
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ pip install pkrbot
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ```python
38
+ import pkrbot
39
+ import random
40
+
41
+ # Evaluate a hand
42
+ hand = [pkrbot.Card('As'), pkrbot.Card('Kh'), pkrbot.Card('Qd'), pkrbot.Card('Jc'), pkrbot.Card('Ts')]
43
+ result = pkrbot.evaluate(hand)
44
+ print(pkrbot.handtype(result)) # "Straight"
45
+
46
+ # Use a deck
47
+ deck = pkrbot.Deck()
48
+ deck.shuffle()
49
+ hand = deck.deal(7)
50
+ result = pkrbot.evaluate(hand)
51
+
52
+ # Use a set seed deck
53
+ rng = random.Random(42)
54
+ deck = pkrbot.Deck(42)
55
+ deck.shuffle() # will use seed 42
56
+ hand = deck.sample(7) # will use seed 42 as well
57
+ deck_2 = pkrbot.Deck(rng) # will use seed 42, but with persisted random state in rng
58
+ print(pkrbot.handtype(pkrbot.evaluate(hand)))
59
+ ```
60
+
61
+ ## API
62
+
63
+ **Cards**: `pkrbot.Card('As')` - Ranks: `2-9, T, J, Q, K, A`, Suits: `c, d, h, s`
64
+
65
+ **Deck**:
66
+ - `deck.shuffle()` - Randomize
67
+ - `deck.deal(n)` - Remove and return n cards
68
+ - `deck.peek(n)` - View top n cards
69
+ - `deck.sample(n)` - Get n random cards
70
+
71
+ **Evaluate**: `result = pkrbot.evaluate(hand)` - Higher values = better hands
72
+
73
+ **Hand Type**: `pkrbot.handtype(result)` - Returns: "Straight Flush", "Quads", "Full House", "Flush", "Straight", "Trips", "Two Pair", "Pair", "High Card"
74
+
75
+ ## Performance
76
+
77
+ ~2-3x faster than eval7. Optimized Cython with aggressive compiler flags.
78
+
79
+ ## License
80
+
81
+ MIT
@@ -0,0 +1,6 @@
1
+ pkrbot.cp311-win_amd64.pyd,sha256=xZB36GNYT4R9QDoq-Z44psziROv4KbExaemcMqwoZnU,161280
2
+ pkrbot-1.0.19.dist-info/LICENSE,sha256=s4Xq2XwX8Awq3hCKHkUtDT7WUFy2ZRIwYZh3X5M8pp0,1079
3
+ pkrbot-1.0.19.dist-info/METADATA,sha256=_LwhcE567iHCjTiLVH5Ek6KOwwIFNWBGSLR_ifQlnDU,2390
4
+ pkrbot-1.0.19.dist-info/WHEEL,sha256=y4n9_669c4ZQLyT56MHjc_JUbnwtaZfMVMycweN557o,102
5
+ pkrbot-1.0.19.dist-info/top_level.txt,sha256=7oySJHjEWRiJMYUFWjVD-_k8ims_mGSp4C9kFpvLPfM,7
6
+ pkrbot-1.0.19.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.45.1)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-cp311-win_amd64
5
+
@@ -0,0 +1 @@
1
+ pkrbot
Binary file