pybind11 bindings exposing the C++ engine to Python. More...
#include <pybind11/pybind11.h>#include <pybind11/stl.h>#include <pybind11/stl/filesystem.h>#include <array>#include <filesystem>#include <vector>#include "BitBully.h"#include "Board.h"#include "OpeningBook.h"Go to the source code of this file.
Typedefs | |
| using | B = BitBully::Board |
| Short-hand alias used throughout the binding definitions. | |
Functions | |
| PYBIND11_MODULE (bitbully_core, m) | |
Define the bitbully_core extension module. | |
pybind11 bindings exposing the C++ engine to Python.
Defines the bitbully_core extension module which wraps the three core C++ classes — BitBully::Board, BitBully::BitBully and BitBully::OpeningBook — as the Python types BoardCore, BitBullyCore and OpeningBookCore. The Python package adds higher-level conveniences on top of these primitives.
Definition in file bitbully_core.cpp.
| using B = BitBully::Board |
Short-hand alias used throughout the binding definitions.
Definition at line 27 of file bitbully_core.cpp.
| PYBIND11_MODULE | ( | bitbully_core | , |
| m | ) |
Define the bitbully_core extension module.
Exposes BitBully::Board, BitBully::BitBully and BitBully::OpeningBook to Python under the names BoardCore, BitBullyCore and OpeningBookCore. The module is loaded by import bitbully_core from the Python package.
Definition at line 37 of file bitbully_core.cpp.