Skip to main content

A collection of modules that allows the user to access objects used in bridge games, for example, a board or a contract.

Project description

bridgeobjects

A 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).

Installation

pip install bridgeobjects

Version 0.0.20 - 04 Aug 2021

Improve event and board in file_operations

Version 0.0.19 - 17 July 2021

Update 'super'

Version 0.0.18 - 03 July 2021

Add leader property to Contract and improve _auction_analysis

Version 0.0.17 - 02 July 2021

Add auction keyword to Contract

Version 0.0.16 - 30 June 2021

Add level to contract and improve _auction_analysis

Version 0.0.15 - 03 June 2021

Expose version in bridgeobjects.VERSION

Version 0.0.14 - 03 June 2021

Update Trick and Card for cardplay

Version 0.0.13 - 21 May 2021

Add is_honour setter to Card and improve Card eq, ne etc.


Version 0.0.12 - 13 May 2021

Various changes to Board, Hand, Constants, and Trick for card play


Version 0.0.11 - 05 May 2021

Various changes to Board, Hand, Constants, and Trick for card play


Version 0.0.10 - 17 January 2021

Use Denomination in Hand suit_points


Version 0.0.9 - 16 January 2021 Make repeated null events take UUID value


Version 0.0.8 - 18 November 2020

Initialise event in parse_pbn and improve regex in test


Version 0.0.7 - 18 November 2020

Problem in parse_pbn


Version 0.0.6 - 18 November 2020

Changed return type of Board.build_fourth_hand


Version 0.0.5 - 29 October 2020

Added is_honour to Card

Hand cards by suit can take string or Suit parameter


Version 0.0.4 - 24 October 2020

Bugs in file objects


Version 0.0.3 - 16 October 2020

Expose parse_lin


Version 0.0.2 - 16 October 2020

Expose parse_lin


Version 0.0.1 - October 2020

Expose parse_pbn


Version 0.0.0 - August 2020

Created and uploaded


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bridgeobjects-0.0.20.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bridgeobjects-0.0.20-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file bridgeobjects-0.0.20.tar.gz.

File metadata

  • Download URL: bridgeobjects-0.0.20.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5

File hashes

Hashes for bridgeobjects-0.0.20.tar.gz
Algorithm Hash digest
SHA256 ff67364359c5a64e75e1d874fd1b3a952d39cc12866b74e53eaf2bde2cdd1180
MD5 52b504a17caf3192abbbeed73d127e4e
BLAKE2b-256 1de19de6e6c63eea492a02623ec413771b78bc15745a1d7b9dbc64798b9edeed

See more details on using hashes here.

File details

Details for the file bridgeobjects-0.0.20-py3-none-any.whl.

File metadata

  • Download URL: bridgeobjects-0.0.20-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5

File hashes

Hashes for bridgeobjects-0.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 9eea62214e70bd0a46a4633969e7a1a39e07f5d0f3baf6e7d1df3744bea7be96
MD5 3e2267980b0f594e87269f85eb696c86
BLAKE2b-256 abde96206859c28effc5771f07330d6184c273ad9e194192aa0baae621b3abc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page