bridgeobjects 0.1.33__tar.gz → 0.1.35__tar.gz
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.
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/PKG-INFO +2 -2
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/pyproject.toml +2 -2
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/pyproject.toml.orig +2 -2
- bridgeobjects-0.1.35/src/bridgeobjects/__init__.py +38 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/hand.py +0 -1
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/2C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/2D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/2H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/2S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/3C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/3D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/3H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/3S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/4C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/4D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/4H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/4S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/5C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/5D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/5H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/5S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/6C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/6D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/6H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/6S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/7C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/7D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/7H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/7S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/8C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/8D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/8H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/8S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/9C.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/9D.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/9H.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/9S.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/AC.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/AD.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/AH.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/AS.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/JC.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/JD.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/JH.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/JS.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/KC.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/KD.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/KH.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/KS.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/QC.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/QD.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/QH.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/QS.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/TC.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/TD.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/TH.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/TS.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/aaa.zip +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/back.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/blank.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images/cards/blue_back.png +0 -0
- bridgeobjects-0.1.35/src/bridgeobjects/images.py +14 -0
- bridgeobjects-0.1.33/src/bridgeobjects/__init__.py +0 -39
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/README.md +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/_create_pbn_string.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/_create_rbn_string.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/_file_constants.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/_parse_lin_string.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/_parse_pbn_string.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/_parse_rbn_string.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/_version.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/auction.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/board.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/call.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/card.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/constants.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/contract.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/denomination.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/event.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/file_operations.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/suit.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/suit_base.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/__init__.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_auctions.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_boards.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_calls.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_cards.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_contracts.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/lin_input_file_1.lin +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_auction_1.pbn +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_auction_2.pbn +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_input_3.pbn +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_input_file_1.pbn +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_output_file_1.pbn +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/rbn_input_file_1.rbn +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/rbn_output_file_1.rbn +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_denominations.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_events.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_hands.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_lin.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_pbn.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_rbn.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_scores.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_suits.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_trick.py +0 -0
- {bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/trick.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: bridgeobjects
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.35
|
|
4
4
|
Summary: Objects used in bridge games, for example, board, hand, bid or a contract.
|
|
5
5
|
Author: Jeff
|
|
6
|
-
Author-email: Jeff
|
|
6
|
+
Author-email: Jeff <jeffwatkins2000@gmail.com>
|
|
7
7
|
Requires-Dist: iniconfig>=2.1.0
|
|
8
8
|
Requires-Dist: packaging>=25.0
|
|
9
9
|
Requires-Dist: pluggy>=1.6.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "bridgeobjects"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.35"
|
|
4
4
|
requires-python = "==3.13.*"
|
|
5
5
|
description = "Objects used in bridge games, for example, board, hand, bid or a contract."
|
|
6
6
|
readme = "README.md"
|
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
|
14
14
|
|
|
15
15
|
[[project.authors]]
|
|
16
16
|
name = "Jeff"
|
|
17
|
-
email = "
|
|
17
|
+
email = "jeffwatkins2000@gmail.com"
|
|
18
18
|
|
|
19
19
|
[dependency-groups]
|
|
20
20
|
dev = ["pytest"]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "bridgeobjects"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.35"
|
|
4
4
|
requires-python = "==3.13.*"
|
|
5
5
|
description = "Objects used in bridge games, for example, board, hand, bid or a contract."
|
|
6
6
|
authors = [
|
|
7
|
-
{ name = "Jeff", email = "
|
|
7
|
+
{ name = "Jeff", email = "jeffwatkins2000@gmail.com" },
|
|
8
8
|
]
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
include = [
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The bridgeobjects package exposes the following classes:
|
|
3
|
+
(inspect the individual modules to see their APIs):
|
|
4
|
+
|
|
5
|
+
constants: various constants used throughout the package,
|
|
6
|
+
e.g. SEATS = ['N', 'E', 'S', 'W'];
|
|
7
|
+
board: represents a board of 4 hands;
|
|
8
|
+
hand: holds the 13 cards dealt to the hand;
|
|
9
|
+
card: a single card in a hand, board or trick;
|
|
10
|
+
suit: one of Spades, Hearts, Clubs or diamonds;
|
|
11
|
+
denomination: the name of a call in the auction or contract,
|
|
12
|
+
it includes the four suits and NT;
|
|
13
|
+
auction: the calls made on a particular board
|
|
14
|
+
contract: the contract reach on a board;
|
|
15
|
+
call: an individual call made to reach a contract
|
|
16
|
+
event: the match or competition at which the boards are played:
|
|
17
|
+
trick: four cards played which one pair wins:
|
|
18
|
+
file_operations: a module to load or save events in a PBN,
|
|
19
|
+
RBN or LIN format.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from bridgeobjects.auction import *
|
|
23
|
+
from bridgeobjects.board import *
|
|
24
|
+
from bridgeobjects.call import *
|
|
25
|
+
from bridgeobjects.card import *
|
|
26
|
+
from bridgeobjects.constants import *
|
|
27
|
+
from bridgeobjects.contract import *
|
|
28
|
+
from bridgeobjects.denomination import *
|
|
29
|
+
from bridgeobjects.event import *
|
|
30
|
+
from bridgeobjects.file_operations import *
|
|
31
|
+
from bridgeobjects.hand import *
|
|
32
|
+
from bridgeobjects.images import *
|
|
33
|
+
from bridgeobjects.suit import *
|
|
34
|
+
from bridgeobjects.trick import *
|
|
35
|
+
|
|
36
|
+
from ._version import __version__
|
|
37
|
+
|
|
38
|
+
VERSION = __version__
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
__all__ = [
|
|
5
|
+
"CARD_IMAGES",
|
|
6
|
+
]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
CARD_IMAGES = {}
|
|
10
|
+
card_image_dir = Path(Path(__file__).parent, "images", "cards")
|
|
11
|
+
for directory_name, subdir_list, file_list in os.walk(card_image_dir):
|
|
12
|
+
for file_name in file_list:
|
|
13
|
+
file_path = os.sep.join([directory_name, file_name])
|
|
14
|
+
CARD_IMAGES[Path(file_name).stem] = file_path
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
The bridgeobjects package exposes the following classes:
|
|
5
|
-
(inspect the individual modules to see their APIs):
|
|
6
|
-
|
|
7
|
-
constants: various constants used throughout the package,
|
|
8
|
-
e.g. SEATS = ['N', 'E', 'S', 'W'];
|
|
9
|
-
board: represents a board of 4 hands;
|
|
10
|
-
hand: holds the 13 cards dealt to the hand;
|
|
11
|
-
card: a single card in a hand, board or trick;
|
|
12
|
-
suit: one of Spades, Hearts, Clubs or diamonds;
|
|
13
|
-
denomination: the name of a call in the auction or contract,
|
|
14
|
-
it includes the four suits and NT;
|
|
15
|
-
auction: the calls made on a particular board
|
|
16
|
-
contract: the contract reach on a board;
|
|
17
|
-
call: an individual call made to reach a contract
|
|
18
|
-
event: the match or competition at which the boards are played:
|
|
19
|
-
trick: four cards played which one pair wins:
|
|
20
|
-
file_operations: a module to load or save events in a PBN,
|
|
21
|
-
RBN or LIN format.
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from bridgeobjects.constants import *
|
|
26
|
-
from bridgeobjects.board import *
|
|
27
|
-
from bridgeobjects.hand import *
|
|
28
|
-
from bridgeobjects.card import *
|
|
29
|
-
from bridgeobjects.suit import *
|
|
30
|
-
from bridgeobjects.auction import *
|
|
31
|
-
from bridgeobjects.contract import *
|
|
32
|
-
from bridgeobjects.call import *
|
|
33
|
-
from bridgeobjects.event import *
|
|
34
|
-
from bridgeobjects.trick import *
|
|
35
|
-
from bridgeobjects.file_operations import *
|
|
36
|
-
from bridgeobjects.denomination import *
|
|
37
|
-
|
|
38
|
-
from ._version import __version__
|
|
39
|
-
VERSION = __version__
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/lin_input_file_1.lin
RENAMED
|
File without changes
|
{bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_auction_1.pbn
RENAMED
|
File without changes
|
{bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_auction_2.pbn
RENAMED
|
File without changes
|
{bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_input_3.pbn
RENAMED
|
File without changes
|
{bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/pbn_input_file_1.pbn
RENAMED
|
File without changes
|
|
File without changes
|
{bridgeobjects-0.1.33 → bridgeobjects-0.1.35}/src/bridgeobjects/tests/test_data/rbn_input_file_1.rbn
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|