What is endplay?

endplay is a Python library providing a variety of different tools for generating, analysing, solving and scoring bridge deals. It is a collection of different tools based on Bo Haglund’s famous dds library, Hans van Staveren’s dealer program and other personal projects which have been cobbled together into a compatible interface using a common type system based on the encodings defined in the dds library.

If you find this useful and would like to contribute, or found it totally buggy and broken and want to fix it, then I am very open to contributions.

Table of Contents

  • endplay

    • Building and installing

      • From PyPI

      • From source

      • For development

      • Building the documentation

      • Running the test suite

    • Overview of submodules

    • Tutorial

      • Inspecting deals

        • Enumerated types

        • The interact module

      • Generating hands

        • The main module

      • Evaluating hands

        • Assigning point values to hands

        • Evaluating shape

      • Double dummy analysis

        • Analyse

        • DD Tables

        • Par contract calculation and scoring contracts

        • Bids and auctions: an aside

        • Solving for a player’s hand

      • Parsing to and from bridge file formats (PBN, LIN, JSON)