Package: bridgeobjects
bridgeobjectsA collection of modules that allows the user to utilise objects used in bridge games, for example, a board or a contract.The classes form a natural hierarchy:event
└── board
├── auction
│   └── call
│       └── denomination
├── contract
├── hand
│   └── card
│       └── suit
└── trick(However, some classes are natural subsidiaries not represented in this classification, for example, there are four cards in a trick.)The objects can be created using a simple, self explanatory, human readable set of definitions
by using Portable Bridge Notation (PBN) (http://www.tistis.nl/pbn/) or
Richard’s Bridge Notation (RBN) (http://www.rpbridge.net/7a12.htm).InstallationpipinstallbridgeobjectsHistoryVersion 0.1.28 01 Feb 2024Refactor handFile load pbn to handle BBO filesVersion 0.1.27 7 Jan 2024Fix calls in AuctionVersion 0.1.26 13 Oct 2023Add icecreamVersion 0.1.25 18 Sep 2023Add auction to pbn stringVersion 0.1.24 21 Jul 2023Fix tricks in parse_pbn and add sealer to pbn string on boardVersion 0.1.23 01 Jul 2023Fix  pbn X and XXVersion 0.1.22 29 Jun 2023refactor and lintingVersion 0.1.21 11 May 2023Remove Result from pbn strVersion 0.1.20 05 May 2023Create seven_sixVersion 0.1.19 05 Mar 2023Fix vulnerability in scoringVersion 0.1.18 - 19 Jan 2023Add VULNERABILITY to constantsVersion 0.1.17 - 31 Dec 2022contract.py
    fix scoring bug ans refactor
    add json functionality

trick.py
    add json functionality

auction.py
    add json functionality

_parse_pbn_string.py
    support for seat_calls (not implemented)Version 0.1.16 - 24 Nov 2022change output format of create_pbn_board
fix trick winner in _parse pbn_string
allow "" in contract nameVersion 0.1.15 - 23 Oct 2022Repair tab option in file_operationsVersion 0.1.13 - 29 Sept 2022Make player dealer(not declarer in pbn auctionVersion 0.1.14 - 29 Sept 2022Repair tab option in file_operationsVersion 0.1.13 - 29 Sept 2022Make player dealer(not declarer in pbn auctionVersion 0.1.12 - 5 Feb 2022Various changes around cardplay esp. scoring and resultsVersion 0.1.11 - 15 Nov 2021contract.py : add scoring
constants.py : scoring constantsVersion 0.1.10 - 8 Nov 2021board.py : add declarers_tricks
file_operations.py: Results type checkVersion 0.1.9 - 8 Nov 2021board.py not updatedVersion 0.1.8 - 8 Nov 2021auction.play: add seat_callsboard.py: add declarers_tricks and optimum_result_tableconstants.py: add DENOMINATION_NAMES, remove CARD_RANKS and consolidate into CARD_VALUEScontract.py: add level and target_tricksfile_operations: add Result and OptimumResultTable in pbnVersion 0.1.7 - 25 Oct 2021Add CARD_RANKS to ConstantsVersion 0.1.6 - 15 Oct 2021Add CARD_VALUES to Constants
Correct bug when a board is created without eventVersion 0.1.5 - 7 Oct 2021list to List in hand.py sort_card_listVersion 0.1.4 - 2 Oct 2021Check suit exists in list before removal in hands.py._get_shortest_suitVersion 0.1.3 - 29 Sept 2021Changes to contract, file_operations, hand and trick for cardplayVersion 0.1.2 - 23 Aug 2021Test Contract modifier and tidy up high_card_left in sort_cardVersion 0.1.1 - 23 Aug 2021Expose DenominationVersion 0.1.0 - 23 Aug 2021Implement typingVersion 0.0.20 - 04 Aug 2021Improve event and board in file_operationsVersion 0.0.19 - 17 July 2021Update 'super'Version 0.0.18 - 03 July 2021Add leader property to Contract and improve _auction_analysisVersion 0.0.17 - 02 July 2021Add auction keyword to ContractVersion 0.0.16 - 30 June 2021Add level to contract and improve _auction_analysisVersion 0.0.15 - 03 June 2021Expose version in bridgeobjects.VERSIONVersion 0.0.14 - 03 June 2021Update Trick and Card for cardplayVersion 0.0.13 - 21 May 2021Add is_honour setter to Card and improve Card eq, ne etc.Version 0.0.12 - 13 May 2021Various changes to Board, Hand, Constants, and Trick for card playVersion 0.0.11 - 05 May 2021Various changes to Board, Hand, Constants, and Trick for card playVersion 0.0.10 - 17 January 2021Use Denomination in Hand suit_pointsVersion 0.0.9 - 16 January 2021
Make repeated null events take UUID valueVersion 0.0.8 - 18 November 2020Initialise event in parse_pbn and improve regex in testVersion 0.0.7 - 18 November 2020Problem in parse_pbnVersion 0.0.6 - 18 November 2020Changed return type of Board.build_fourth_handVersion 0.0.5 - 29 October 2020Added is_honour to CardHand cards by suit can take string or Suit parameterVersion 0.0.4 - 24 October 2020Bugs in file objectsVersion 0.0.3 - 16 October 2020Expose parse_linVersion 0.0.2 - 16 October 2020Expose parse_linVersion 0.0.1 - October 2020Expose parse_pbnVersion 0.0.0 - August 2020Created and uploaded