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.9 - 16 January 2021
Initilise event in parse_pbn and improve regex in test
Version 0.0.8 - 18 November 2020
Initilise 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bridgeobjects-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c6dc7d38ed225711295ec8e3504c9a1ece87e3fc5dac20cc500843577b52ad3 |
|
MD5 | 63ce4f2269ad121f30ac88cd53259dc9 |
|
BLAKE2b-256 | 19678cb71fc2704e96a5edd4a8c4581ea6e4af10a96c9621e711e74a7ce177b6 |