bridgeobjects 0.1.29__tar.gz → 0.1.30__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.
Files changed (54) hide show
  1. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/PKG-INFO +9 -1
  2. bridgeobjects-0.1.30/bridgeobjects/_version.py +1 -0
  3. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/hand.py +3 -2
  4. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects.egg-info/PKG-INFO +9 -1
  5. bridgeobjects-0.1.29/bridgeobjects/_version.py +0 -1
  6. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/LICENSE.txt +0 -0
  7. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/README.md +0 -0
  8. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/__init__.py +0 -0
  9. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/__init__.py +0 -0
  10. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/_create_pbn_string.py +0 -0
  11. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/_file_constants.py +0 -0
  12. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/_parse_lin_string.py +0 -0
  13. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/_parse_pbn_string.py +0 -0
  14. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/_parse_rbn_string.py +0 -0
  15. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/auction.py +0 -0
  16. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/board.py +0 -0
  17. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/call.py +0 -0
  18. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/card.py +0 -0
  19. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/constants.py +0 -0
  20. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/contract.py +0 -0
  21. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/denomination.py +0 -0
  22. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/event.py +0 -0
  23. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/file_operations.py +0 -0
  24. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/suit.py +0 -0
  25. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/suit_base.py +0 -0
  26. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/src/trick.py +0 -0
  27. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/__init__.py +0 -0
  28. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_auctions.py +0 -0
  29. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_boards.py +0 -0
  30. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_calls.py +0 -0
  31. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_cards.py +0 -0
  32. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_contracts.py +0 -0
  33. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/lin_input_file_1.lin +0 -0
  34. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/pbn_auction_1.pbn +0 -0
  35. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/pbn_auction_2.pbn +0 -0
  36. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/pbn_input_3.pbn +0 -0
  37. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/pbn_input_file_1.pbn +0 -0
  38. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/pbn_output_file_1.pbn +0 -0
  39. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/rbn_input_file_1.rbn +0 -0
  40. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_data/rbn_output_file_1.rbn +0 -0
  41. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_denominations.py +0 -0
  42. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_events.py +0 -0
  43. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_hands.py +0 -0
  44. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_lin.py +0 -0
  45. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_pbn.py +0 -0
  46. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_rbn.py +0 -0
  47. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_scores.py +0 -0
  48. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_suits.py +0 -0
  49. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects/tests/test_trick.py +0 -0
  50. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects.egg-info/SOURCES.txt +0 -0
  51. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects.egg-info/dependency_links.txt +0 -0
  52. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/bridgeobjects.egg-info/top_level.txt +0 -0
  53. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/setup.cfg +0 -0
  54. {bridgeobjects-0.1.29 → bridgeobjects-0.1.30}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bridgeobjects
3
- Version: 0.1.29
3
+ Version: 0.1.30
4
4
  Summary: A collection of modules that allows the user to access objects used
5
5
  Home-page: https://psionman@bitbucket.org/psionman/bridgeobjects.git
6
6
  Download-URL: https://pypi.org/project/bridgeobjects/
@@ -41,6 +41,12 @@ pip install bridgeobjects
41
41
 
42
42
 
43
43
  # History
44
+ Version 0.1.30 0715 Apr 2024
45
+
46
+ 1. Initailse hand shape
47
+
48
+ ------
49
+
44
50
  Version 0.1.29 07 Mar 2024
45
51
 
46
52
  1. Rationalise modifier in contract
@@ -52,6 +58,8 @@ Version 0.1.28 01 Feb 2024
52
58
  1. Refactor hand
53
59
  2. File load pbn to handle BBO files
54
60
 
61
+ ------
62
+
55
63
  Version 0.1.27 7 Jan 2024
56
64
 
57
65
  1. Fix calls in Auction
@@ -0,0 +1 @@
1
+ __version__ = '0.1.30'
@@ -3,7 +3,7 @@
3
3
  from .card import Card
4
4
  from .denomination import Denomination
5
5
  from .suit import Suit, Spades, Hearts, Diamonds, Clubs
6
- from .constants import (SUIT_NAMES, RANKS, SUITS, HONOUR_POINTS,
6
+ from .constants import (SUIT_NAMES, RANKS, SUITS, HONOUR_POINTS, SEATS,
7
7
  BALANCED_SHAPES, SEMI_BALANCED_SHAPES,
8
8
  CARD_NAMES, DISPLAY_SUIT_ORDER)
9
9
 
@@ -13,6 +13,7 @@ __all__ = ['Hand']
13
13
  CANDIDATES_4441 = {'S': SUITS['H'], 'H': SUITS['S'],
14
14
  'D': SUITS['H'], 'C': SUITS['S']}
15
15
 
16
+
16
17
  class Hand(object):
17
18
  """
18
19
  A hand object for the bridgeobjects module.
@@ -57,7 +58,7 @@ class Hand(object):
57
58
 
58
59
  # attributes set once the cards are known for the hand
59
60
  self._high_card_points = -1
60
- self._shape: list[int] = []
61
+ self._shape: list[int] = [0 for seat in SEATS]
61
62
  self._equal_long_suits = False
62
63
  self._suits_by_length = None
63
64
  self._longest_suit = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bridgeobjects
3
- Version: 0.1.29
3
+ Version: 0.1.30
4
4
  Summary: A collection of modules that allows the user to access objects used
5
5
  Home-page: https://psionman@bitbucket.org/psionman/bridgeobjects.git
6
6
  Download-URL: https://pypi.org/project/bridgeobjects/
@@ -41,6 +41,12 @@ pip install bridgeobjects
41
41
 
42
42
 
43
43
  # History
44
+ Version 0.1.30 0715 Apr 2024
45
+
46
+ 1. Initailse hand shape
47
+
48
+ ------
49
+
44
50
  Version 0.1.29 07 Mar 2024
45
51
 
46
52
  1. Rationalise modifier in contract
@@ -52,6 +58,8 @@ Version 0.1.28 01 Feb 2024
52
58
  1. Refactor hand
53
59
  2. File load pbn to handle BBO files
54
60
 
61
+ ------
62
+
55
63
  Version 0.1.27 7 Jan 2024
56
64
 
57
65
  1. Fix calls in Auction
@@ -1 +0,0 @@
1
- __version__ = '0.1.29'
File without changes
File without changes
File without changes