endplay.experimental.playdetect

Algorithms for detecting play techniques

Classes:

PlayTechniqueBase()

SimpleFinesse()

Functions:

detect_play(deal, play_history[, techniques])

class endplay.experimental.playdetect.PlayTechniqueBase

Bases: ABC

Attributes:

_abc_impl

name

Methods:

_match(deal, trick)

match(deal, trick)

_abc_impl = <_abc._abc_data object>
abstractmethod _match(deal: Deal, trick: list[Card])
match(deal: Deal, trick: list[Card])
abstract property name: str
class endplay.experimental.playdetect.SimpleFinesse

Bases: PlayTechniqueBase

Attributes:

_abc_impl

name

Methods:

_match(deal, trick)

_abc_impl = <_abc._abc_data object>
_match(deal: Deal, trick: list[Card])
property name
endplay.experimental.playdetect.detect_play(deal: Deal, play_history: list[Card], techniques: list[PlayTechniqueBase] = [])