Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 940 Bytes

File metadata and controls

38 lines (22 loc) · 940 Bytes

Polyglot opening book reading

.. autofunction:: chess.polyglot.open_reader

.. autoclass:: chess.polyglot.Entry
    :members:

    .. py:attribute:: key

        The Zobrist hash of the position.

    .. py:attribute:: raw_move

        The raw binary representation of the move. Use
        :data:`~chess.polyglot.Entry.move` instead.

    .. py:attribute:: weight

        An integer value that can be used as the weight for this entry.

    .. py:attribute:: learn

        Another integer value that can be used for extra information.

    .. py:attribute:: move

        The :class:`~chess.Move`.

.. autoclass:: chess.polyglot.MemoryMappedReader
    :members:

.. py:data:: chess.polyglot.POLYGLOT_RANDOM_ARRAY
    :annotation: = [0x9D39247E33776D41, ..., 0xF8D626AAAF278509]

    Array of 781 polyglot compatible pseudo random values for Zobrist hashing.

.. autofunction:: chess.polyglot.zobrist_hash