endplay.types.vul

Classes:

Vul(value)

Encodes the vulnerability

class endplay.types.vul.Vul(value)

Bases: IntEnum

Encodes the vulnerability

Attributes:

abbr

A short string representation of the vulnerability

both

ew

none

ns

Methods:

find(name)

Convert a string into a Vul object

from_board(board_no)

return:

The vulnerability of the specified board

from_lin(s)

Convert a BBO LIN string of vulnerability into a Vul object.

to_lin()

property abbr: str

A short string representation of the vulnerability

both = 1
ew = 3
static find(name: str) Vul

Convert a string into a Vul object

static from_board(board_no: int) Vul
Returns:

The vulnerability of the specified board

static from_lin(s: str) Vul

Convert a BBO LIN string of vulnerability into a Vul object. The conversion is determined by o=none, e=ew, n=ns, b=both

none = 0
ns = 2
to_lin() str